Jump to content

Uploads Fail


daebat

Recommended Posts

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.)

Link to comment
https://forums.phpfreaks.com/topic/188064-uploads-fail/
Share on other sites

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

Link to comment
https://forums.phpfreaks.com/topic/188064-uploads-fail/#findComment-993447
Share on other sites

  • 3 weeks later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.