-
-
Notifications
You must be signed in to change notification settings - Fork 443
Open
Labels
Description
What Happened
When I use pest browser to test the submission of a form of type "multipart/form-data" (mixing text inputs and file upload) I expect the request in the backend (Laravel controller) to contain the inputs values.
In the network tab (with playwright used in head mode) I can check that all inputs are sent in the request by the browser. But on Laravel side the request inputs are empty (Same thing if I output $_POST or php://input).
If I remove the type "multipart/form-data", I receive the expected inputs but obviously it breaks the file upload.
How to Reproduce
- Write a simple post form in a Laravel app with the enctype "multipart/form-data".
- Add an handler in Laravel that ouputs the content of request (e.g request->all())
- Write a browser test with Pest that submits the form
Sample Repository
No response
Pest Version
4.0.4
PHP Version
8.4.2
Operation System
macOS
Notes
No response
enkay, alexujed and Math3vs4muel and slelorraineubentofmichielkempen and arwinvdv