[wp-trac] Re: [WordPress Trac] #9625: Incorrect Upload Error
Messages
WordPress Trac
wp-trac at lists.automattic.com
Sat Apr 25 07:28:33 GMT 2009
#9625: Incorrect Upload Error Messages
--------------------------+-------------------------------------------------
Reporter: Askapache | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 2.8
Component: Upload | Version: 2.8
Severity: normal | Keywords: has-patch,tested
--------------------------+-------------------------------------------------
Changes (by Askapache):
* keywords: needs-patch => has-patch,tested
Comment:
Good one ryan, I attached an updated patch that removes the use defined
constants.. here's the differences in the rfc1867.c files for 5.2.9 vs
4.3.0
PHP 4.3.0
{{{
#define UPLOAD_ERROR_OK 0 /* File upload succesful */
#define UPLOAD_ERROR_A 1 /* Uploaded file exceeded upload_max_filesize
*/
#define UPLOAD_ERROR_B 2 /* Uploaded file exceeded MAX_FILE_SIZE */
#define UPLOAD_ERROR_C 3 /* Partially uploaded */
#define UPLOAD_ERROR_D 4 /* No file uploaded */
}}}
PHP 5.2.9
{{{
#define UPLOAD_ERROR_OK 0 /* File upload succesful */
#define UPLOAD_ERROR_A 1 /* Uploaded file exceeded upload_max_filesize
*/
#define UPLOAD_ERROR_B 2 /* Uploaded file exceeded MAX_FILE_SIZE */
#define UPLOAD_ERROR_C 3 /* Partially uploaded */
#define UPLOAD_ERROR_D 4 /* No file uploaded */
#define UPLOAD_ERROR_E 6 /* Missing /tmp or similar directory */
#define UPLOAD_ERROR_F 7 /* Failed to write file to disk */
#define UPLOAD_ERROR_X 8 /* File upload stopped by extension */
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/9625#comment:4>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list