diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/exe/mediamanager.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/exe/mediamanager.php b/lib/exe/mediamanager.php index a83d5d772..97afae9b7 100644 --- a/lib/exe/mediamanager.php +++ b/lib/exe/mediamanager.php @@ -53,6 +53,16 @@ exit; } + // give info on PHP catched upload errors + if($_FILES['upload']['error']) switch($_FILES['upload']['error']){ + case 1: + case 2: + msg(sprintf($lang['uploadsize'], + filesize_h(php_to_byte(ini_get('upload_max_filesize')))),-1); + break; + default: + msg($lang['uploadfail'],-1); + } // handle upload if($_FILES['upload']['tmp_name']){ |