Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7021037
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T23:23:49+00:00 2026-05-27T23:23:49+00:00

Word documents that are uploaded with the .doc extension in my application are uploaded

  • 0

Word documents that are uploaded with the .doc extension in my application are uploaded as .bin files. Here is the form code:

$this->setValidator('upload_report', new sfValidatorFile(array(
    'mime_type_guessers' => array('guessFromFileinfo'),
    'path' => sfConfig::get('sf_upload_dir').'/reports',
    'required' => $required,
 )));

Any ideas why it’s doing this?

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T23:23:50+00:00Added an answer on May 27, 2026 at 11:23 pm

    Symfony tries to guess the mime type of the file and names the file based on the detected mime type. I’ve had this problem in the past, and fixed it in my preSave method to move the file.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an application that needs to have .doc files uploaded to it. These
I am in charge of about 100+ documents (word document, not source code) that
Does anyone know a way to display code in Microsoft Word documents that preserves
based on Join MS Word documents I have made a console application that splices
So I've created a C# library that manipulates and edits Word Documents. This of
We have an application that reads Word documents and imports them into our file
I am creating an application that gets thousands of word documents from an Oracle
Ok, so I have an iPhone application that displays Word documents for certain terms
I have a folder that contains multiple word documents. I need to monitor this
I have webpages that contain links to word documents and pdf files. For each

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.