2013-08-02 Sergio Martin <sergio.martin@artica.es>
* include/functions_filemanager.php: added new error message on file manager to warn when the post size limit is exceded by the uploaded file git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8623 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
c72879741b
commit
15a8037d33
|
@ -1,3 +1,9 @@
|
|||
2013-08-02 Sergio Martin <sergio.martin@artica.es>
|
||||
|
||||
* include/functions_filemanager.php: added new error message
|
||||
on file manager to warn when the post size limit is
|
||||
exceded by the uploaded file
|
||||
|
||||
2013-08-02 Miguel de Dios <miguel.dedios@artica.es>
|
||||
|
||||
* include/graphs/functions_gd.php, include/graphs/fgraph.php,
|
||||
|
|
|
@ -187,6 +187,12 @@ if ($upload_file) {
|
|||
}
|
||||
}
|
||||
|
||||
// Control the max_post_size exceed
|
||||
if (intval($_SERVER['CONTENT_LENGTH']) > 0 && empty($_POST) AND empty($_FILES)) {
|
||||
$config['filemanager']['correct_upload_file'] = 0;
|
||||
$config['filemanager']['message'] = ui_print_error_message(__('File size seems to be too large. Please check your php.ini configuration or contact with the administrator'), '', true);
|
||||
}
|
||||
|
||||
// Create text file
|
||||
$create_text_file = (bool) get_parameter ('create_text_file');
|
||||
if ($create_text_file) {
|
||||
|
|
Loading…
Reference in New Issue