1

I have a form with a file upload element on it (set to allow multiple file selection - echo $this->Form->file('filename.', array('multiple' => 'multiple'));), and when the size of files selected by the user exceeds the PHP value of post_max_size I get no error, but $this->request->data is an empty array.

Is this the expected behaviour, it doesn't seem right to me?

toby1kenobi
  • 1,609
  • 1
  • 14
  • 24
  • 1
    That is indeed the expected behavior, PHP drops all POST data in that case. **https://stackoverflow.com/questions/11476139/php-post-files-empty-when-upload-larger-than-post-max-size** – ndm Feb 02 '18 at 16:57

0 Answers0