Welcome Guest, Not a member yet? Register   Sign In
Looking for mime types for firefox/linux
#1

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

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

[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'),
#4

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

[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




Theme © iAndrew 2016 - Forum software by © MyBB