Skip to content
This repository was archived by the owner on Sep 8, 2025. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants