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.

Allow Setting Empty File Name

See original GitHub issue

I am using request for multipart form upload. If file source(ReadStream) is not set, I want to still send the file-part with filename="". like:

------WebKitFormBoundaryK5aZPhhwAGCZ9xn4
Content-Disposition: form-data; name="datafile"; filename=""
Content-Type: application/octet-stream


------WebKitFormBoundaryK5aZPhhwAGCZ9xn4--

But due to truthy check on filename its not possible.

Is there any way to send empty filename?

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:1
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
mapleeitcommented, Jun 21, 2019

FYI, @lautarodragan #421 has been merged. Please wait for next release.

2reactions
alexindigocommented, Nov 13, 2018

Trying to think of a way to do it without creating breaking change. So if you have ideas – please tell 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do you create a file with an empty name?
To see exactly what the file name is, run LC_CTYPE=C ls -b . This replaces all blank or non-printable characters by octal escapes....
Read more >
How can I make this command work and not give `Empty file ...
This function works fine in neovim, but in vim 8 it gives error E499: Empty file name for '%' or '#', only works...
Read more >
Rename files to empty filename in Windows (Vista)
Open command prompt and use the move command to rename the file. move .keystore.txt .keystore. Now the file does not have the .txt...
Read more >
How to create empty file in Linux - nixCraft
Open a terminal window. Press CTRL + ALT + T on Linux to open the Terminal app. · To create an empty file...
Read more >
MATLAB uigetfile - Open file selection dialog box - MathWorks
The dialog box displays the contents of the folder. The File name field is empty, and no filter applies. To specify a folder...
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