...

View Full Version : Getting filetype from an upload box.



christopherbrag
01-19-2003, 12:35 AM
I would like to know how to find out the type of file that a user has submitted via one of my upload boxes.

I want to do this so that if users select a file other than a .jpg, or .gif file, it will alert them with a warning to try uploading another file.

thank you!

mordred
01-19-2003, 12:58 AM
Take a look at this thread:
http://codingforums.com/showthread.php?s=&threadid=13079

Indeed, the search functionality of this forum just works great... ;)

justame
01-19-2003, 01:01 AM
chr...
does this link just a help® ya???
http://www.htmlgoodies.com/attachp2.html

n' on it??? theres just a link® to give you the 'code' ya need for different extensions...:O)))

/me seems to think though that it reallly should be done 'server' side...nottt via the form on your page...



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum