Allow Setting Empty File Name
See original GitHub issueI 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:
- Created 5 years ago
- Reactions:1
- Comments:7 (3 by maintainers)
Top 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 >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
FYI, @lautarodragan #421 has been merged. Please wait for next release.
Trying to think of a way to do it without creating breaking change. So if you have ideas – please tell 😃