class.upload.php is a powerful and mature PHP class to manage uploaded files, and manipulate images in many ways. The script is available under a GPL license.
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';
}
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 :
for :