Error: File too big. proglem

See all posts Reply

Error: File too big. proglem new!
by nfnk, 13 years, 5 months ago
3872x5184 image upload
File too big. proglem
$handle->file_max_size = '307200'; // 1KB
$handle->image_max_pixels = 9000;
$handle->image_min_pixels = 6000;
Reply
Re: Error: File too big. proglem new!
by colin, 13 years, 5 months ago
What is the problem exactly?Reply
Re: Error: File too big. proglem new!
by Shaun, 13 years, 4 months ago
Hi, I get the same problem doesn't matter what the size of the file is. the server is set to 2048KB, but when I upload the item (tried all types) then i get the problem.

File not uploaded to the wanted location
Error: File too big.

Please help.Reply
Re: Error: File too big. proglem new!
by colin, 13 years, 4 months ago
See this thread for instance/Reply
Re: Error: File too big. proglem new!
by 2FR3, 12 years, 3 months ago
The solution is in the php.ini file.
You need to modify :
post_max_size = 90M
upload_max_filesize = 90M
max_input_time = 1000
" for exemples !!! "

or informe your users about your server limitations :
change the condition :
    // we delete the temporary files
    $handle-> Clean();

} else {
    // if we're here, the upload file failed for some reasons
    // i.e. the server didn't receive the file
    echo 'file not uploaded on the server';
    echo '  Erreur: ' . $handle->error . '';
}
for :
    // we delete the temporary files
    $handle-> Clean();

} else {
    // if we're here, the upload file failed for some reasons
    // i.e. the server didn't receive the file
    echo 'file not uploaded on the server>';
    echo 'HERE YOUR MESSAGE OR REDIRECT';
}
Reply