Android Question The PHP Error:" Unknown: Input variables exceeded 1000. To increase the limit change max_input_vars

Discussion in 'Android Questions' started by fash866, Apr 23, 2015.

  1. fash866

    fash866 Member Licensed User

    Hi:
    I use httpUtils2.postBytes() to post a image stream,But on the server,The PHP5.6 return a waring:

    <b>Warning</b>: Unknown: Input variables exceeded 1000. To increase the limit change max_input_vars in php.ini. in <b>Unknown</b> on line <b>0</b><br />

    what's the reason?
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    How are you reading the payload in your php script?
     
  3. fash866

    fash866 Member Licensed User

    Code:
    $fileData = file_get_contents('php://input');
                
                file_put_contents( config::uploadPicturePath . $storedFileName,$fileData);
     
  4. Erel

    Erel Administrator Staff Member Licensed User

  5. fash866

    fash866 Member Licensed User

  6. Erel

    Erel Administrator Staff Member Licensed User

    The reason is that your PHP server limits the length of POSTs payload.
     
  7. fash866

    fash866 Member Licensed User

    Is it don't like a web browser to upload a file?
     
  8. Erel

    Erel Administrator Staff Member Licensed User

Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice