summaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
Diffstat (limited to 'inc')
-rw-r--r--inc/media.php7
1 files changed, 2 insertions, 5 deletions
diff --git a/inc/media.php b/inc/media.php
index d8ca288c1..3850f4e33 100644
--- a/inc/media.php
+++ b/inc/media.php
@@ -239,11 +239,8 @@ function media_upload($ns,$auth){
$file = $_FILES['upload'];
if(empty($id)) $id = $file['name'];
- // check for data
- if(!@filesize($file['tmp_name'])){
- msg('No data uploaded. Disk full?',-1);
- return false;
- }
+ // check for errors (messages are done in lib/exe/mediamanager.php)
+ if($file['error']) return false;
// check extensions
list($fext,$fmime,$dl) = mimetype($file['name']);