Default to octet-stream if mimetype detection fails.
The function mimetypes.guess_type returns (None, None) if it fails to find a matching extension. In that case, we should just treat the media as application/octet-stream.
Loading
Please sign in to comment