CodeIgniter Forums
Uploading Files with No Mime Type - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: Uploading Files with No Mime Type (/thread-36435.html)



Uploading Files with No Mime Type - El Forum - 12-01-2010

[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?


Uploading Files with No Mime Type - El Forum - 12-02-2010

[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.