Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
Update UPLOAD_ERR constants, there were new values introduced since 5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
cdujeu committed Jan 14, 2014
1 parent ee8067b commit 3be2a34
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/src/core/classes/class.AJXP_Utils.php
Expand Up @@ -269,6 +269,9 @@ public static function parseFileDataErrors($boxData)
$errorsArray[UPLOAD_ERR_NO_FILE] = array(410, "No file found on server!");
$errorsArray[UPLOAD_ERR_PARTIAL] = array(410, "File is partial");
$errorsArray[UPLOAD_ERR_INI_SIZE] = array(410, "No file found on server!");
$errorsArray[UPLOAD_ERR_NO_TMP_DIR] = array(410, "Cannot find the temporary directory!");
$errorsArray[UPLOAD_ERR_CANT_WRITE] = array(411, "Cannot write into the temporary directory!");
$errorsArray[UPLOAD_ERR_EXTENSION] = array(410, "A PHP extension stopped the upload process");
if ($userfile_error == UPLOAD_ERR_NO_FILE) {
// OPERA HACK, do not display "no file found error"
if (!ereg('Opera', $_SERVER['HTTP_USER_AGENT'])) {
Expand Down

0 comments on commit 3be2a34

Please sign in to comment.