s3.content_type_for()
Return the content type an object should be served as, by its suffix.
Usage
s3.content_type_for(path)Parameters
path: str, Path, or UPath- Object name or path. Only the suffix is read, case-insensitively.
Returns
str-
A media type from CONTENT_TYPES, else from Python’s built-in
mimetypestable, elseapplication/octet-stream.