How do I change this to accept all file types.
$accepted_mime_types = array('image/jpg', 'image/jpeg', 'image/gif', 'image/png', 'image/pjpeg');
Thanks in advance.
Where are you using it?
I am using it an upload script, for files.
you can't, unless you find a full MIME list and add in every single MIME type. if you don't want restrictions then just cut the checking out all together............
Originally posted by Moonglobe you can't, unless you find a full MIME list and add in every single MIME type. if you don't want restrictions then just cut the checking out all together............
And just in case you're considering having a complete list, the official one is here.
As Moonglobe suggested; just don't check the MIME type and then it can be anything.
Thanks guys, I just took out the checking part of it.