Good Morning.
I have experienced an error about file upload using php4.1.2 and redhat7.2
The snippet of code is:
if (is_uploaded_file($FILES['image']['tmp_name'])) {
move_uploaded_file($FILES['image']['tmp_name'], IMAGES . '/' . $FILES['image']['name'][0] . '/' . $FILES['image']['name']);
} else {
echo "Upload failed";
exit;
}
Ok, the weird thing is that array $_FILES contains, as expected, all the datas, like name, tmp_name, size and type, but when i try to move (or copy) the file from the tmp location to the new location, the size of new file is always 0.
Why? Where is the mistake? ;-)
Thankyou all.
Paolo Dina