While calling a API with content-type : "multipart/form-data", setting content disposition in header is not working
See original GitHub issueDescribe the bug
While calling a API with content-type : “mutlipart/form-data”, setting content disposition in header is not working
Version
Browser
- Chrome
OS
- Windows
To Reproduce
Steps to reproduce the behavior:
- Create a Dialog -> Trigger
- As part of this as for user Input as 'attachment"
- Send this file to input as using Access External resources -> Send HTTP Request
- The API that I used is of type content-type : “mutlipart/form-data”
- Tried options as
-
Content-Type: multipart/form-data;boundary="boundary"
- this threw error, (saying Content-Type invalid)
-
- Set header as key
Content-Disposition and Value as "form-data; name="file"; filename="${dialog.attachments[0].name}"
- Set header as key
-
- Set header as key
Content-Disposition and Value as "form-data; name="file"; filename="${dialog.attachments[0].contentUrl}"
- Set header as key
- This header itself is not being shown in emulator trace, I doubt if it is being set
Is there a fix for this issue
Expected behavior
Screenshots
Additional context
Is there any other way of calling this kind of APIs
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (1 by maintainers)
Top Results From Across the Web
While calling a API with content-type : "multipart/form-data ...
Describe the bug While calling a API with content-type : "mutlipart/form-data", setting content disposition in header is not working Version ...
Read more >POST request with Multipart/form-data. Content-type not ...
The weird thing is that the 'general type' of the packet indeed is multipart/form-data, but the individual item sent (key = 'name', value=...
Read more >multipart/form-data' header doesn't handle content
Hello,. We are using API Gateway in our project and are running into a weird issue. We have a virtualized REST API allowing...
Read more >Content-Type - HTTP - MDN Web Docs - Mozilla
In requests, (such as POST or PUT ), the client tells the server what type of data is actually sent. Header type, Representation...
Read more >Multipart/form-data content type
Each part must contain a Content-Disposition header field where the disposition is form-data. The Content-Disposition header field must also contain an ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’m investigating this now.
@dmvtech can you take a look at this?