kiss-o-matic Posted February 13, 2009 Share Posted February 13, 2009 I had some working code, and somewhere along the way, it broke. Not sure where. Printing out the $_FILES['file'] array, I get the following when trying to upload an image: name => ,yjpg.jpg type => tmp_name => error => 2 size => 0 I don't know what error 2 is, but I assume that is the problem. The thing is, *SOME* jpgs will work, while others give this error. Any ideas? Link to comment https://forums.phpfreaks.com/topic/145022-file-upload/ Share on other sites More sharing options...
printf Posted February 13, 2009 Share Posted February 13, 2009 MAX UPLOAD SIZE was reached, upload canceled! Your form input MAX_FILE_SIZE triggered the error.. Link to comment https://forums.phpfreaks.com/topic/145022-file-upload/#findComment-760982 Share on other sites More sharing options...
PFMaBiSmAd Posted February 13, 2009 Share Posted February 13, 2009 http://us.php.net/manual/en/features.file-upload.errors.php Link to comment https://forums.phpfreaks.com/topic/145022-file-upload/#findComment-760983 Share on other sites More sharing options...
kiss-o-matic Posted February 13, 2009 Author Share Posted February 13, 2009 Cheers, thanks. Checking the form, I left a zero out. The list of error codes will come in handy. Feel free to mark [sOLVED]. Link to comment https://forums.phpfreaks.com/topic/145022-file-upload/#findComment-760989 Share on other sites More sharing options...
mike12255 Posted February 13, 2009 Share Posted February 13, 2009 your the one that marks it as solved you click the botton at the bottom of the page... Link to comment https://forums.phpfreaks.com/topic/145022-file-upload/#findComment-760990 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.