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. Quote Link to comment 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 Quote Link to comment 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 Quote Link to comment 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. Quote Link to comment 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. 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.