-
-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support Arrays in multipart/form-data #1367
base: main
Are you sure you want to change the base?
Support Arrays in multipart/form-data #1367
Conversation
🦋 Changeset detectedLatest commit: 71e9a5c The changes in this PR will be included in the next version bump. This PR includes changesets to release 23 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
The preview deployment is ready. 🟢 Open Preview | Open Build Logs Last updated at: 2024-10-31 18:37:19 CET |
@shahriar-shojib can we make sure this will also work for file uploading? I had to remove the code from my client generation as it was breaking file uploading:
|
I don't know why it would break because the code you sent is the existing code and it works for file uploads as long as the formData does not contain any Arrays. I will double-check the test cases. please add more details on how your file uploads are breaking so that I can take a closer look. |
@shahriar-shojib I think this will do the job. My project we are using Expo with multiple file selection, and by default it was converting the form-data to array with the file reference, something like: I do feel that this will solve the issue. Thanks for your response |
this is indeed what this PR aims to solve! |
No description provided.