cannot send empty string value in multipart request
See original GitHub issuereq.field('fieldName', '')
throws… I get that you wouldn’t be able to send undefined
, but any other falsy value should be supported. Use case is : patching with a file and input values that can be empty (to be reset for eg) or null
.
EDIT : It was supported in an earlier version. I stumbled upon this after upgrading.
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
cannot send empty string value in multipart request #1270
req.field('fieldName', '') throws... I get that you wouldn't be able to send undefined , but any other falsy value should be supported.
Read more >I need to pass an empty string, and not Null in my FormData ...
I have an if condition checks all of the values of the form and appends them to the FormData object before submitting the...
Read more >Response with empty body - is this a problem? - jQuery Forum
Hi, I am using Chrome to send a request from the browser to the Micrium HTTP server, which is successfully received by the...
Read more >How to return empty string - Jitterbit Community
When Jitterbit API return a JSON data, and some fields are empty. ... I want the return value is "PostalCode": "". What do...
Read more >Post Content Empty - Mendix Forum
In Mendix 8, the HttpRequest/Content is left empty when the Content-Type is multipart/form-data. You can handle these type of requests in ...
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
+1 more report - yes it is annoying 😃
PR welcome