windsurfer
Perch
I get a 403 error when I upload a file and call move_uploaded_file.
It seems that the tmp directory is unreachable.
Here's the code...
foreach ($_FILES as $fieldName => $file) {
$filenames .= $fieldName. "\n";
if(move_uploaded_file($file['tmp_name'], "./images/" . $file['name'])) {
echo "The file ". $file['name'] . " has been uploaded";
} else{
echo "There was an error uploading the file" . "./images/" . $file['name'] . ", please try again!";
}
}
The php echoes the error clause when it runs.
My Flash app reports a 403 error.
Is there some configuration I need to do to be able to use this function?
P.S. the same code works on my windows server. This code fails on the Linux server.
-- Thanks,
Shannon Vance
It seems that the tmp directory is unreachable.
Here's the code...
foreach ($_FILES as $fieldName => $file) {
$filenames .= $fieldName. "\n";
if(move_uploaded_file($file['tmp_name'], "./images/" . $file['name'])) {
echo "The file ". $file['name'] . " has been uploaded";
} else{
echo "There was an error uploading the file" . "./images/" . $file['name'] . ", please try again!";
}
}
The php echoes the error clause when it runs.
My Flash app reports a 403 error.
Is there some configuration I need to do to be able to use this function?
P.S. the same code works on my windows server. This code fails on the Linux server.
-- Thanks,
Shannon Vance