• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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.


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.