haddydaddy Posted December 2, 2008 Share Posted December 2, 2008 Hello all, I'm currently using move_uploaded_file on a document storage application I am writing, and I am now randomly getting an error #2 from the $_FILES variable output, can someone point me in the right direction on what the error #2 refers to, I'm having trouble finding it on Google. Thanks... Link to comment https://forums.phpfreaks.com/topic/135199-solved-help-with-file-upload-error/ Share on other sites More sharing options...
rhodesa Posted December 2, 2008 Share Posted December 2, 2008 http://us2.php.net/manual/en/features.file-upload.errors.php Value: 2; The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the HTML form. Link to comment https://forums.phpfreaks.com/topic/135199-solved-help-with-file-upload-error/#findComment-704143 Share on other sites More sharing options...
haddydaddy Posted December 2, 2008 Author Share Posted December 2, 2008 Thanks rhodesa, That pointed me in the right direction Link to comment https://forums.phpfreaks.com/topic/135199-solved-help-with-file-upload-error/#findComment-704217 Share on other sites More sharing options...
rhodesa Posted December 2, 2008 Share Posted December 2, 2008 whenever handling file uploads, i grab the array of error code descriptions from the comments and use those to display the error to the user. here is one list: http://us2.php.net/manual/en/features.file-upload.errors.php#80575 Link to comment https://forums.phpfreaks.com/topic/135199-solved-help-with-file-upload-error/#findComment-704223 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.