CodeIgniter Forums
The filetype you are attempting to upload is not allowed. - 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: The filetype you are attempting to upload is not allowed. (/thread-45781.html)



The filetype you are attempting to upload is not allowed. - El Forum - 10-05-2011

[eluser]Unknown[/eluser]
I'm using Code Igniter 1.73 and trying to upload perform an upload of a text file with a ".Dat" extension. No matter what I've tried I can't get it to successfully upload because of its file type. I did an echo of it's mime type and here's what I get:

string 'application/octet-stream' (length=24)

I've added 'application/octet-stream' (no quotes) to my allowed file types and that hasn't worked. I've also added 'Dat' => 'application/octet-stream', to mimes.php and that didn't work either.

Is there anything else I can do to make this work with a ".Dat" file?