Max Array size passed by POST

5

I am doing a JavaScript function to read a file that the user is uploading and sends to PHP via POST only content for insertion into the database.

I'm trying to send a array with the contents of the file, each position is a line, the problem is that some files can be very large (600,000 lines) and the largest array I can pass via POST is 100 thousand lines. I've already changed the php.ini post_max_size , max_input_vars , memory_limit but still can not.

Does anyone know how I can pass this array with 600,000 positions by POST without having to break it into parts?

    
asked by anonymous 24.02.2015 / 13:59

1 answer

1

Your description indicates that you may be experiencing a PHP Suhosin patch restriction.

There are two other directives that should be added / changed if this module is active: suhosin.post.max_vars and suhosin.request.max_vars , in addition to those already informed in the question.

Try changing these directives in php.ini.

Sources: this question in English OS and PHP 5.3 max_input_vars and big forms

    
24.02.2015 / 14:59