CodeIgniter Forums

Full Version: Uploading Files with No Mime Type
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[eluser]derekmichaeljohnson[/eluser]
I'm using ZOHO Writer which allows users to upload Word Docs to their server to edit using their UI. Whenever a user saves their document, ZOHO sends it back to my server to process and upload. The problem is that when ZOHO is sending it back, there's no mime type and thus CodeIgniter is saying "the filetype you're uploading is not allowed."

Here is the upload data of what ZOHO is sending:

Code:
name: 1291215938663_sample_resume2.doc
type:
tmp_name: /tmp/phphbNqpY
error: 0
size: 94208

As you can see, the "type" is blank. Any ideas on how to solve this?

El Forum

[eluser]Dennis Rasmussen[/eluser]
Edit your application/config/mimes.php file to include the mimetype of the file you want to work with.
Apparently it's not listed.