May
need help with multiple file upload - error:unable to move, failed to open stream
this is the error I get:
The <input type="file"… are named images[].
the code is this:
for($x = 0; $x < count($_FILES[‘images’][‘name’]); $x++)
{
if(($_FILES[“images”][“type”][$x] == “image/jpeg”) || ($_FILES[“images”][“type”][$x] == “image/pjpeg”))
{
if($_FILES[‘images’][’size’][$x] > 0)
{
move_uploaded_file($_FILES[‘images’][“tmp_name”][$x], ‘/Photos/’);
}
}
}
For the location i’ve tried "/Photos", "Photos/", with no success.
I have the permissions set to 777, and have been searching google for a couple hours now. Thanks for helping!
Relevant Links

