question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

cannot send empty string value in multipart request

See original GitHub issue

req.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:closed
  • Created 6 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
kamilsmugacommented, Sep 11, 2017

+1 more report - yes it is annoying 😃

0reactions
niftylettucecommented, Jun 6, 2019

PR welcome

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found