The MAX_FILE_SIZE field must precede the file input field.

More here: http://php.net/manual/en/features.file-upload.post-method.php
Merge pull request #1826 from uniun/patch-2

The MAX_FILE_SIZE field must precede the file input field.