09-30-2009, 12:45 AM
|
#2 (permalink)
|
|
The Contributor
Join Date: Mar 2009
Location: US
Posts: 76
Thanks: 0
|
Couple of things here - $HTTP_POST_FILES has been deprecated since about 4.1 I believe you need to use instead $_FILES
- 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
- 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...
- You need to set write permissions to the folder you are uploading (777)
|
|
|
|