Posted by Milan Krejci on 11/01/07 08:27
while(list($key,$value) = each($_FILES["file"]["name"]))
{
if(!empty($value)){
$filename = $value;
$add = "upimg/$filename";
echo $_FILES["file"]["tmp_name"][$key];
$error=copy($_FILES["file"]["tmp_name"][$key], $add);
if (!$error) $progressUploadingPhotos=false;
$error=chmod($add,0777);
if (!$error) $progressUploadingPhotos=false;
} else $progressUploadingPhotos=false;
}
the thing is that the file is never saved. any ideas?
[Back to original message]
|