forked from googleapis/google-api-python-client
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add media_mime_type keyword argument
Sometimes the Python mimetypes module cannot automatically detect the MIME type of a media upload file, and the user would want to explicitly specify it. An example is audio/x-raw. This commit adds a media_mime_type keyword argument to media upload methods. If the caller does not specify this argument, a warning is logged to teach the user about it in case they need to explicitly specify a MIME type.
- Loading branch information
1 parent
5f00cad
commit 38051ac
Showing
3 changed files
with
42 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters