You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently when a file is uploaded to an S3 bucket, the "Content-Type" is “binary/octet-stream”.
For some file types this is not ideal. For example, for a PDF to be viewed in the browser (as opposed to being downloaded), the "Content-Type" must be set to "application/pdf”.
The enhancement is:
For known file types (e.g., based on their filename extension), set the "Content-Type" to an appropriate value for that file type.
See the "ExtraArgs" parameter in boto3 upload on how to set "Content-Type".
The text was updated successfully, but these errors were encountered:
Currently when a file is uploaded to an S3 bucket, the "Content-Type" is “binary/octet-stream”.
For some file types this is not ideal. For example, for a PDF to be viewed in the browser (as opposed to being downloaded), the "Content-Type" must be set to "application/pdf”.
The enhancement is:
For known file types (e.g., based on their filename extension), set the "Content-Type" to an appropriate value for that file type.
See the "ExtraArgs" parameter in boto3 upload on how to set "Content-Type".
The text was updated successfully, but these errors were encountered: