Skip to content
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

Make FileOptions type #100

Merged
merged 5 commits into from
Jun 6, 2023
Merged

Make FileOptions type #100

merged 5 commits into from
Jun 6, 2023

Conversation

anand2312
Copy link
Contributor

Makes a new FileOptions type for the file_options argument to .upload.
Without the content-type header set, the default value of text/plain was being used, which was tripping up a lot of people when they tried to upload files that aren't text (like images).
This is now documented and I've also added an example in the README that shows how to properly set the content-type.

@anand2312 anand2312 marked this pull request as ready for review June 6, 2023 09:20
@anand2312 anand2312 requested a review from J0 June 6, 2023 10:08
@anand2312 anand2312 merged commit 1585e42 into main Jun 6, 2023
@anand2312 anand2312 deleted the type-options branch June 12, 2023 04:57
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.

2 participants