PHP upload file types
PHP upload file types
Out of context: Reply #9
- Started
- Last post
- 10 Responses
- mike0
Google... three word search, first result.
http://www.webmaster-toolkit.com…
you can build an array of the types you want to work with and then check the type passed with in_array().
or... you could make a tab delimited list from this list and push that into an array if you like. then you know the proper headers to send across.
if you are working with images on the upload, you can call getimagesize() and determine the absolute image type from the return array.