The form has an <input type="file"> . The form has the attribute enctype="multipart/form-data" and method="post" . The file is small (less than 1 MB). On the server in the received request, the $_FILES empty. What could be the problem? Previously, it worked fine.
1 answer
It turns out that one of the fields on the form was enableAjaxValidation Ajax validation. Therefore, the requests went without files - only for the validation of the model. And only then the main file and the rest of the fields. But the main did not reach, because The ajax request was not processed separately. Now everything is ok!
|
Content-Length? - PECHAIRContent-Type: application/x-www-form-urlencoded; charset=UTF-8Content-Type: application/x-www-form-urlencoded; charset=UTF-8. This is despite the fact thatenctype="multipart/form-data"indicated in the 200%enctype="multipart/form-data". I do not understand how this happens, but the type changes when sending a hike. - PECHAIR