Welcome Guest, Not a member yet? Register   Sign In
Uploading Files with No Mime Type
#1

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

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




Theme © iAndrew 2016 - Forum software by © MyBB