View Single Post
Old 09-30-2009, 12:45 AM   #2 (permalink)
ioan1k
The Contributor
 
ioan1k's Avatar
 
Join Date: Mar 2009
Location: US
Posts: 76
Thanks: 0
ioan1k is on a distinguished road
Default

Couple of things here
  1. $HTTP_POST_FILES has been deprecated since about 4.1 I believe you need to use instead $_FILES
  2. For uploaded files you want to use move_uploaded_file instead of copyand do a simple if statement using http://us2.php.net/getimagesize]getimagesize to validate that the uploaded file is an image
  3. You cannot process the form with three files being uploaded with the same name, each image you upload must have unique name so it would become $_FILES['ufile1], $_FILES['ufile2'] etc etc...
  4. You need to set write permissions to the folder you are uploading (777)
__________________
My Portfolio - Work - Need freelance Work?
I've been developing 5 years now, and I learn something new everyday
ioan1k is offline  
Reply With Quote
The Following User Says Thank You to ioan1k For This Useful Post:
ilangostl (10-01-2009)