View Full Version : Getting filetype from an upload box.

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!

01-19-2003, 12:58 AM
Take a look at this thread:

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

01-19-2003, 01:01 AM
does this link just a help® ya???

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