Re: large file uploads
| From: | Arthur Radulescu | Date: | Wed, 07 Apr 2004 14:14:46 +0000 |
| Subject: | Re: large file uploads | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-182636@lists.php.net to get a copy of this message | ||
The code is below (pieces of it). The folders have write permissions. It
works just fine with smaller files but nothing happens with larger files
if(!is_uploaded_file($_FILES['file']['tmp_name'])){
$ERR['file']=1;
}
if(!sizeof($ERR)){
$try=copy_file($_FILES['file']['tmp_name'],
$TO_FILE);
// copy_file makes the upload using copy or
move_uploaded_file
if($try=="copy_err"){
echo "copy_err";
}
else{
echo "copy_success";
}
}