Tag Archives: error code

PHP: File Upload Error Code CodeUnit 21 NOV 2010

When handling file uploads via enctype=”multipart/form-data” forms in PHP, you’ll be pleased to know that PHP doesn’t just leave you high and dry but instead returns some pretty helpful error codes to let you know when something goes wrong.

The following is a comprehensive listing of the error codes returned by the upload process:

(Note, these can be access from $_FILES[‘#inputname#’][‘error’])

...