Forum Moderators: coopster

Message Too Old, No Replies

file extension validation when uploading it

         

ernest1b

11:31 pm on Dec 29, 2009 (gmt 0)

10+ Year Member



I have a site where customer can upload a wireframe of his house. I need to give option for all possible formats (world, openoffice, all images including professional program extensions like illustrator, cdr, ...).

Now I have the problem because I don't know what extensions can be allowed to apload. I found [URL="http://en.wikipedia.org/wiki/List_of_file_formats"]here[/URL] some information but the problem is that IE changes file extension names. For example it changes jpeg into pjeg. And I don't know how many similar cases can be left.

Anybody know for any source or library where you get all extensions for each program?

tnx!

astkboy2008

10:56 am on Dec 30, 2009 (gmt 0)

10+ Year Member



you can but it in array
and use if in_array