Request Entity Too Large -- How Are We Suppose To Fix This ??

Discussion in 'PHP' started by Bohra, Mar 11, 2010.

  1. #1
    Well i am using a allery script here http://lockerzshare.in/prizegallery/

    whenever i try to upload a pic i keep getting

    Request Entity Too Large
    The requested resource
    /prizegallery/member.php
    does not allow request data with GET requests, or the amount of data provided in the request exceeds the capacity limit.
    
    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
    Code (markup):
    What exactly does this mean and how can we fix it
     
    Bohra, Mar 11, 2010 IP
  2. zannovski

    zannovski Greenhorn

    Messages:
    18
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    11
    #2
    You should use POST in the upload request. Not GET. Get has limitation about the amount of data that can be send.

    In the <form> in the HTML just put method="POST". Default value is GET, so you have to explicit define it.
     
    zannovski, Mar 11, 2010 IP
  3. Bohra

    Bohra Prominent Member

    Messages:
    12,573
    Likes Received:
    537
    Best Answers:
    0
    Trophy Points:
    310
    #3
    well the code says

    <form method="post" action="./member.php" enctype="multipart/form-data" onsubmit="uploadbutton.disabled=true;">

    so its already using POST
     
    Bohra, Mar 11, 2010 IP
  4. danx10

    danx10 Peon

    Messages:
    1,179
    Likes Received:
    44
    Best Answers:
    2
    Trophy Points:
    0
    #4
    That maybe but it may user something else along the line such as:

    file.php?url=<?php echo $_POST['url']; ?>
    PHP:
    I've seen such stuff, used within ajax & jquery based scripts.
     
    danx10, Mar 12, 2010 IP
  5. Bohra

    Bohra Prominent Member

    Messages:
    12,573
    Likes Received:
    537
    Best Answers:
    0
    Trophy Points:
    310
    #5
    umm thats tough to find ill have to check it out as its a ready made script i am using
     
    Bohra, Mar 12, 2010 IP