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
adriangardiner-taina
changed the title
WIP [Bug]: APIRequestContext multipart parameter does not allow user to send multiple files in a single field
[Bug]: APIRequestContext multipart parameter does not allow user to send multiple files in a single field
Mar 12, 2025
Looks like also something which would affect upstream, I'll move it for now until we have decided how we want to move forward on this. Once we decided how to fix it all the language bindings would consume the same fix.
Version
1.50.0
Steps to reproduce
Setup a multipart data object with an array of files being sent in a single field using the ApiRequestContext object
Attempt to send this to an API endpoint that expects to find a list of files against the field named "files".
Example steps : TBC
Expected behavior
I expect to receive a list of files in my API endpoint in a single form field.
Actual behavior
0 files are sent to the API Endpoint.
Additional context
Issue has been identified in playwright/_impl/_fetch.py#L382
Suggest an extra helper method and foreach loop added to identify and attach arrays of file payloads
Environment
The text was updated successfully, but these errors were encountered: