Changeset 2671
- Timestamp:
- 05/13/08 15:27:07 (2 months ago)
- Files:
-
- trunk/system/helpers/upload.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/system/helpers/upload.php
r2648 r2671 100 100 public static function type(array $file, array $allowed_types) 101 101 { 102 if ((int) $file['error'] !== UPLOAD_ERR_OK) 103 return TRUE; 104 102 105 // Get the default extension of the file 103 106 $extension = strtolower(file::extension($file['name'])); … … 122 125 public function size(array $file, array $size) 123 126 { 127 if ((int) $file['error'] !== UPLOAD_ERR_OK) 128 return TRUE; 129 124 130 // Only one size is allowed 125 131 $size = strtoupper($size[0]);
