Jump to content

Warning: POST Content-Length exceeds limit


PHPNS

Recommended Posts

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
Share on other sites

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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.