Re: filtering uploaded files

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Cima wrote:
hi,

id like to know if there is a way to filter or specify what type of files id like uploaded to my server. for example, if i make a form to upload image files, when i click browse there are 2 fields one that'll store the file name(of the file selected) and the other filetype (usually say all types) what id like is to specify in file type : *.jpg,*gif etc. is this possible?

thanx.

Another reply :)

You can use javascript to find out the extension from form.elements['fileinput'].value, and check it against a list of allowed extensions.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux