PHPNS Posted January 29, 2008 Share Posted January 29, 2008 Hi, Is there a way to avoid/hide the default 'Warning: POST Content-Length' of xxxxxxxxxx bytes exceeds the limit of xxxxxxxxxx' if file uploads are too large for php.ini, when uploading files via a form? That is, if the PHP.ini settings aren't accessible. Thanks. Link to comment https://forums.phpfreaks.com/topic/88478-warning-post-content-length-exceeds-limit/ Share on other sites More sharing options...
valtido Posted January 30, 2008 Share Posted January 30, 2008 well go to that page and look carefully what you are printing out. like "echo" or "print" if u have a code wud be helpful lool Link to comment https://forums.phpfreaks.com/topic/88478-warning-post-content-length-exceeds-limit/#findComment-453021 Share on other sites More sharing options...
cooldude832 Posted January 30, 2008 Share Posted January 30, 2008 if its file uploads do print_r($_FILES); so you can see if its error there alsoq Link to comment https://forums.phpfreaks.com/topic/88478-warning-post-content-length-exceeds-limit/#findComment-453121 Share on other sites More sharing options...
mem0ri Posted January 30, 2008 Share Posted January 30, 2008 Also, if your file-size is exceeding the maximum limit currently set, you might want to set a higher limit in your PHP.ini file. Link to comment https://forums.phpfreaks.com/topic/88478-warning-post-content-length-exceeds-limit/#findComment-453141 Share on other sites More sharing options...
PHPNS Posted February 6, 2008 Author Share Posted February 6, 2008 Thanks for all the notes. But I think there may be something else to it. Basically, how do you restrict a user from posting/submitting a file larger than the ini setting allow (besides the html form - 'MAX FILE SIZE' which can be hacked), because although the php script is in place, on the receiving page, to dis-allow large files, there is still the problem of the user still trying (pressing submit), and getting the above mentioned error (before the receiving page has the opportunity to execute the script). Know what I mean? There may very well be a simply workaround for this but I'm not sure. Link to comment https://forums.phpfreaks.com/topic/88478-warning-post-content-length-exceeds-limit/#findComment-460041 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.