Changeset 259 for trunk/lib/Upload.inc.php
- Timestamp:
- Jun 19, 2007 4:04:42 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Upload.inc.php
r256 r259 199 199 200 200 // Check The php upload error messages. 201 if (UPLOAD_ERR_INI_SIZE === $files['error'][$i]) { 201 if (UPLOAD_ERR_INI_SIZE === $files['error'][$i]) { // Error code 1 202 202 $this->_raiseMsg(sprintf(_("The file %s failed uploading: it exceeds the maximum allowed upload file size of %s."), $file_name, ini_get('upload_max_filesize')), MSG_ERR, __FILE__, __LINE__); 203 203 $app->logMsg(sprintf('The file %s failed uploading with PHP error UPLOAD_ERR_INI_SIZE (currently %s).', $file_name, ini_get('upload_max_filesize')), LOG_ERR, __FILE__, __LINE__); … … 205 205 continue; 206 206 } 207 if (UPLOAD_ERR_FORM_SIZE === $files['error'][$i]) { 207 if (UPLOAD_ERR_FORM_SIZE === $files['error'][$i]) { // Error code 2 208 208 $this->_raiseMsg(sprintf(_("The file %s failed uploading: it exceeds the maximum allowed upload file size of %s."), $file_name, $_POST['MAX_FILE_SIZE']), MSG_ERR, __FILE__, __LINE__); 209 209 $app->logMsg(sprintf('The file %s failed uploading with PHP error UPLOAD_ERR_FORM_SIZE (currently %s).', $file_name, $_POST['MAX_FILE_SIZE']), LOG_ERR, __FILE__, __LINE__); … … 211 211 continue; 212 212 } 213 if (UPLOAD_ERR_PARTIAL === $files['error'][$i]) { 213 if (UPLOAD_ERR_PARTIAL === $files['error'][$i]) { // Error code 3 214 214 $this->_raiseMsg(sprintf(_("The file %s failed uploading: it was only partially uploaded."), $file_name), MSG_ERR, __FILE__, __LINE__); 215 215 $app->logMsg(sprintf('The file %s failed uploading with PHP error UPLOAD_ERR_PARTIAL.', $file_name), LOG_ERR, __FILE__, __LINE__); … … 217 217 continue; 218 218 } 219 if (UPLOAD_ERR_NO_FILE === $files['error'][$i]) { 219 if (UPLOAD_ERR_NO_FILE === $files['error'][$i]) { // Error code 4 220 220 $this->_raiseMsg(sprintf(_("The file %s failed uploading: no file was uploaded."), $file_name), MSG_ERR, __FILE__, __LINE__); 221 221 $app->logMsg(sprintf('The file %s failed uploading with PHP error UPLOAD_ERR_NO_FILE.', $file_name), LOG_ERR, __FILE__, __LINE__); … … 223 223 continue; 224 224 } 225 if (UPLOAD_ERR_NO_TMP_DIR === $files['error'][$i]) { 225 if (UPLOAD_ERR_NO_TMP_DIR === $files['error'][$i]) { // Error code 6 226 226 $this->_raiseMsg(sprintf(_("The file %s failed uploading: temporary upload directory missing."), $file_name), MSG_ERR, __FILE__, __LINE__); 227 227 $app->logMsg(sprintf('The file %s failed uploading with PHP error UPLOAD_ERR_NO_TMP_DIR.', $file_name), LOG_ERR, __FILE__, __LINE__);
Note: See TracChangeset
for help on using the changeset viewer.