{"action":"opened","issue":{"url":"https://api.github.com/repos/form-data/form-data/issues/412","repository_url":"https://api.github.com/repos/form-data/form-data","labels_url":"https://api.github.com/repos/form-data/form-data/issues/412/labels{/name}","comments_url":"https://api.github.com/repos/form-data/form-data/issues/412/comments","events_url":"https://api.github.com/repos/form-data/form-data/issues/412/events","html_url":"https://github.com/form-data/form-data/issues/412","id":379681898,"node_id":"MDU6SXNzdWUzNzk2ODE4OTg=","number":412,"title":"Allow Setting Empty File Name","user":{"login":"codenirvana","id":4865836,"node_id":"MDQ6VXNlcjQ4NjU4MzY=","avatar_url":"https://avatars2.githubusercontent.com/u/4865836?v=4","gravatar_id":"","url":"https://api.github.com/users/codenirvana","html_url":"https://github.com/codenirvana","followers_url":"https://api.github.com/users/codenirvana/followers","following_url":"https://api.github.com/users/codenirvana/following{/other_user}","gists_url":"https://api.github.com/users/codenirvana/gists{/gist_id}","starred_url":"https://api.github.com/users/codenirvana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codenirvana/subscriptions","organizations_url":"https://api.github.com/users/codenirvana/orgs","repos_url":"https://api.github.com/users/codenirvana/repos","events_url":"https://api.github.com/users/codenirvana/events{/privacy}","received_events_url":"https://api.github.com/users/codenirvana/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-12T09:09:30Z","updated_at":"2018-11-12T09:09:30Z","closed_at":null,"author_association":"NONE","body":"I am using [request](https://github.com/request/request) for multipart form upload.\r\nIf file source(ReadStream) is not set, I want to still send the file-part with `filename=\"\"`. like:\r\n\r\n```\r\n------WebKitFormBoundaryK5aZPhhwAGCZ9xn4\r\nContent-Disposition: form-data; name=\"datafile\"; filename=\"\"\r\nContent-Type: application/octet-stream\r\n\r\n\r\n------WebKitFormBoundaryK5aZPhhwAGCZ9xn4--\r\n```\r\n\r\nBut due to [truthy check](https://github.com/form-data/form-data/blob/master/lib/form_data.js#L226) on `filename` its not possible.\r\n\r\nIs there any way to send empty `filename`?"}}
{"actor":{"display_login":"codenirvana"}}