CakePHP request data limits
Asked Answered
D

0

5

When I try to send a large amount of data from a CakePHP (v2.3.3) form, the $this->request->data array contains only some of the data (approximately the first 1000 values).

Does CakePHP truncate this array? What can I do to get the rest of the data?

(I've tried increasing post_max_size in php.ini, to no effect.)

Thanks.

Donica answered 15/1, 2014 at 18:28 Comment(5)
How are you sending this data? Show us some code...Entree
Thanks Leonardo. I've found the problem, by looking in apache_error.log, which reports: PHP Warning: Unknown: Input variables exceeded 1000. To increase the limit change max_input_vars in php.ini.Donica
You're probably sending the data with the GET method, try using POST.Entree
The data was sent via POST, the default according to the CakePHP FormHelper documentation. In any event, I've added a new line to php.ini - "max_input_vars = 10000" - and all data is now being returned. Thanks, again, for your help.Donica
@Donica you may want to post that as an answer :)Adlee

© 2022 - 2024 — McMap. All rights reserved.