Changeset 356


Ignore:
Timestamp:
04/13/10 11:10:17 (9 years ago)
Author:
sander
Message:

Clearer error message on failed file upload

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/server/www/app/models/behaviors/file.php

    r325 r356  
    8888 
    8989                if (!$file['name'] || !isset($file['type']) || !$file['size'] || !$file['tmp_name'] || $file['error'] !== 0) { 
    90                         $this->errors[] = __('There was an error uploading the file.', true); 
     90                        $this->errors[] = __('There was an error uploading the file. Perhaps it was too big?', true); 
    9191                        $this->log("Error uploading file:\n" . print_r($file, true)); 
    9292                        return false; 
Note: See TracChangeset for help on using the changeset viewer.