Improve API.update_with_media file uploading
authorHarmon <Harmon758@gmail.com>
Thu, 14 Jan 2021 16:02:55 +0000 (10:02 -0600)
committerHarmon <Harmon758@gmail.com>
Thu, 14 Jan 2021 16:02:55 +0000 (10:02 -0600)
commit04f260c0f233755392057ac9048d1b05b65dab92
tree832ccb52600a8cd1058a15b573290d322724301b
parentdfd03759eb2fd60fd197f1f0f45258c10102c83a
Improve API.update_with_media file uploading

Use files parameter of requests Session.request
Allow Twitter's API to respond with error code 193 and message "One or more of the uploaded media is too large." instead of checking for file size prior to upload.
Allow Twitter's API to respond with HTTP status code 403, error code 189, and error message "Error creating status." instead of checking for file type prior to upload.
tweepy/api.py