Skip to content

Throw error if name argument is not provided to .file() when uploading a buffer #418

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

kadamwhite
Copy link
Collaborator

No filename can be determined from a buffer object, which causes an Error: No data supplied warning. Adding a specific error check makes this more obvious and will allow consuming developers to quickly identify and resolve the issue.

Fixes #344

props @cungminh2710, @mvhirsch

@kadamwhite kadamwhite merged commit eef8e57 into master Jan 23, 2019
@kadamwhite kadamwhite deleted the enhancement/add-missing-argument-check-to-file-method-344 branch January 23, 2019 17:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

rest_upload_no_data issue
1 participant