Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Upload Script - File types - Categorize them
July 20, 2005, 1:43 pm
rate this thread
I am trying to Create a script that uploads multiple files (that doesn't
So I am looping trough the $_FILES[files][name]
while(list($key,$value) = each($_FILES['files']['name']))
echo $value.' ';
While I am in the loop I want to check if the file is an image or another
file and call the appropriate script.
My question is how can I check if the file is an image ?
NOTE: I have two different functions to upload files because the
upload_image() creates thumbnales and resizes an image.
Thanks for your Time !