post_max_size

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jamesm6162
    New Member
    • Mar 2007
    • 16

    post_max_size

    Hi

    Suppose for a moment that you do NOT have access to the php.ini file....

    Okay, now, I have a form to upload images and it does contain the MAX_FILE_SIZE hidden input field, and it does appear before the file upload input field.

    It sets the max upload size to roughly 3MB

    The current value of the php directive post_max_size is only 2M.
    If I try to upload a file of about 6MB, it gives me the error:
    Quote:
    POST Content-Length of 7007829 bytes exceeds the limit of 2097152 bytes in Unknown on line 0

    this I assumed is because of this max post value being to small (more specifically, smaller than the upload_max_file size).

    How do I change this post value at runtime to avoid this?
  • Markus
    Recognized Expert Expert
    • Jun 2007
    • 6092

    #2
    What's the max_post value in your php.ini?

    Comment

    Working...