Error: File too big. proglem

See all posts See thread Reply

Re: Error: File too big. proglem new!
by Shaun, 13 years, 11 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, 11 months ago
See this thread for instance/Reply
Re: Error: File too big. proglem new!
by 2FR3, 12 years, 10 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