daebat Posted January 11, 2010 Share Posted January 11, 2010 I'm attempting to build a small cms system that will allow our graphic designer to post large jpg, pdf, and eps files for display on a website. I have everything built and works with smaller files but it seems like if I test with bigger files nothing populates into the database. Any ideas? (I have set no restrictions on the form as far as limit to file size.) Quote Link to comment https://forums.phpfreaks.com/topic/188064-uploads-fail/ Share on other sites More sharing options...
PFMaBiSmAd Posted January 11, 2010 Share Posted January 11, 2010 What does your error checking logic in the upload section of your code tell you for the reason the upload is failing? Quote Link to comment https://forums.phpfreaks.com/topic/188064-uploads-fail/#findComment-992824 Share on other sites More sharing options...
daebat Posted January 11, 2010 Author Share Posted January 11, 2010 Is this the error checking code? echo "<pre>"; echo "FILES:"; print_r($_FILES); echo "</pre>"; If so, it stated [ array ] Quote Link to comment https://forums.phpfreaks.com/topic/188064-uploads-fail/#findComment-992838 Share on other sites More sharing options...
PFMaBiSmAd Posted January 12, 2010 Share Posted January 12, 2010 Is this the error checking code? Not really, that is just code that allows you to see what exactly your script is receiving as data and would be used for debugging purposes only. Error checking code would be logic that tests for errors, such as an empty $_FILES array or upload errors in the $_FILES[....]['error'] element; outputs a meaningful user error message telling them that the upload could not be processed, why it could not be processed, and what about the supplied data was invalid; logging all the available information about the error so that the system administrator will know that problems are occurring and can find and fix them as necessary; and takes an appropriate action when an error occurs, like not blindly attempting to use nonexistent data in the remainder of the code. For your specific symptom of an empty $_FILES array for larger files - http://us.php.net/manual/en/ini.core.php#ini.post-max-size Quote Link to comment https://forums.phpfreaks.com/topic/188064-uploads-fail/#findComment-993447 Share on other sites More sharing options...
daebat Posted January 28, 2010 Author Share Posted January 28, 2010 LOL BBQ Quote Link to comment https://forums.phpfreaks.com/topic/188064-uploads-fail/#findComment-1003304 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.