CodeIgniter Forums
Looking for mime types for firefox/linux - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Looking for mime types for firefox/linux (/showthread.php?tid=24257)



Looking for mime types for firefox/linux - El Forum - 11-04-2009

[eluser]überfuzz[/eluser]
I'm in the middle of testing a script that allows user to send an attached file with a form2mail. It seems to be working OK in all set-ups but one. If I'm trying to send a textfil.doc from a linux/firefox browser the file.doc is not accepted. I'm pretty sure a OpenOffice dude never ever will use *.doc, but I like to fix this even so.

Is there some secret mime types out there that I'm not aware of? Does anyone have a list?


Looking for mime types for firefox/linux - El Forum - 11-04-2009

[eluser]BrianDHall[/eluser]
You never really know what mimes might get sent, all I've found to do is test, test, test and add as you find new ones.


Looking for mime types for firefox/linux - El Forum - 11-04-2009

[eluser]überfuzz[/eluser]
Mhmm, thank you for the boring but healthy advice. Nr two works for opensuse/firefox.

Code:
'doc' => array('application/msword', 'text/plain'),



Looking for mime types for firefox/linux - El Forum - 11-04-2009

[eluser]BrianDHall[/eluser]
I'm really not a fan of how CI handles file uploads for this reason. I think MIME is a rather pointless way to handle it, because it doesn't really tell you anything about anything. I would be in favor of an option to skip mime checks entirely and rely purely on file extension.


Looking for mime types for firefox/linux - El Forum - 11-04-2009

[eluser]n0xie[/eluser]
[quote author="überfuzz" date="1257379693"]
Does anyone have a list?[/quote]
Try
Code:
application/vnd.oasis.opendocument.text
Else take a look here, here or here

To use cool icons take a look here