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? Quote Link to comment 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.. Quote Link to comment 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 Quote Link to comment 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]. Quote Link to comment 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... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.