Remove file type check in API.media_upload
authorHarmon <Harmon758@gmail.com>
Wed, 13 Jan 2021 16:18:07 +0000 (10:18 -0600)
committerHarmon <Harmon758@gmail.com>
Wed, 13 Jan 2021 16:19:07 +0000 (10:19 -0600)
commita26746ce0bdb16ec0e66a1bc10d1570c886763ac
treefcc8b6fd91ce418f26ad69a8a81ef073417a4307
parent19ea5c104f761dd41088d2f719da66414b4da652
Remove file type check in API.media_upload

The error message Twitter's API responds with when the file type is unsupported, "media type unrecognized.", is fairly self-explanatory.
Allowing Twitter's API to handle the media type check and avoiding hardcoding supported types also removes the need to update them in the future if they change.
tweepy/api.py