You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug https://forum.codeigniter.com/thread-79028.html
If method spoofing is used in the html form, then the validation class cannot receive data when using Validation::withRequest() if the enctype="multipart/form-data" attribute was set.
If the method is defined as put, patch or delete, then the validation class tries to get data from the request body (php://input). But if multipart/form-data is used then php://input will be empty. https://www.php.net/manual/en/wrappers.php.php#wrappers.php.input
CodeIgniter 4 version
4.1.1 and develop
Affected module(s)
Validation class
Expected behavior, and steps to reproduce if appropriate
Expected behavior: When using encoding and multipart/form-data and method spoofing, do not use reading from php://input
Describe the bug
https://forum.codeigniter.com/thread-79028.html
If method spoofing is used in the html form, then the validation class cannot receive data when using Validation::withRequest() if the enctype="multipart/form-data" attribute was set.
If the method is defined as put, patch or delete, then the validation class tries to get data from the request body (php://input). But if
multipart/form-data
is used thenphp://input
will be empty.https://www.php.net/manual/en/wrappers.php.php#wrappers.php.input
CodeIgniter 4 version
4.1.1 and develop
Affected module(s)
Validation class
Expected behavior, and steps to reproduce if appropriate
Expected behavior: When using encoding and
multipart/form-data
and method spoofing, do not use reading from php://inputBug reproduction:
Context
The text was updated successfully, but these errors were encountered: