We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello,
Use case: Back-end Glue API service accepts multiple files with same field name 'attachment'
POST https://host:post/v1/email --WebAppBoundary Content-Disposition: form-data; name="email"; Content-Type: application/json --WebAppBoundary Content-Disposition: form-data; name="attachment"; filename="file1.pdf" Content-Type: application/octet-stream --WebAppBoundary Content-Disposition: form-data; name="attachment"; filename="file2.csv" Content-Type: application/octet-stream
Trying to send multiple files with following code, but multipart does not accept form data:
const formData = new FormData(); formData.append('email', {Json Payload}); formData.append('attachment', fs.createReadStream('file1.pdf')); formData.append('attachment', fs.createReadStream('file2.csv')); response = await request.post("https://host:post/v1/email", { headers: setToken(), multipart: formData });
I saw Java language port supports that, but what about JS/TS ?
No response
Supporting multiple file attachments (email API) when that API accepts form fields with the same name.
The text was updated successfully, but these errors were encountered:
Looks like a duplicate of #28070
Sorry, something went wrong.
Yep, looks similar, is there some workaround 馃檹
Unfortunately not as of today. Folding into it by that.
No branches or pull requests
馃殌 Feature Request
Hello,
Use case:
Back-end Glue API service accepts multiple files with same field name 'attachment'
Trying to send multiple files with following code, but multipart does not accept form data:
I saw Java language port supports that, but what about JS/TS ?
Example
No response
Motivation
Supporting multiple file attachments (email API) when that API accepts form fields with the same name.
The text was updated successfully, but these errors were encountered: