Changeset 308


Ignore:
Timestamp:
03/01/10 13:13:13 (10 years ago)
Author:
sander
Message:

Log file upload errors

File:
1 edited

Legend:

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

    r293 r308  
    8989                if (!$file['name'] || !isset($file['type']) || !$file['size'] || !$file['tmp_name'] || $file['error'] !== 0) { 
    9090                        $this->errors[] = __('There was an error uploading the file.', true); 
     91                        $this->log("Error uploading file:\n" . print_r($file, true)); 
    9192                        return false; 
    9293                } 
Note: See TracChangeset for help on using the changeset viewer.