- Newest
- Most votes
- Most comments
The behavior you're experiencing with .pptm files changing to .zip when downloading from S3 is not a standard S3 behavior. S3 typically stores and retrieves files as-is without modifying content or file extensions. However, there are a few potential explanations and solutions to consider:
-
Content-Type Metadata: S3 may be incorrectly identifying the MIME type of .pptm files. Check the Content-Type metadata for these objects in S3. If it's set to "application/zip" instead of "application/vnd.ms-powerpoint.presentation.macroEnabled.12", this could cause the issue.
-
Browser Behavior: Some web browsers might interpret the file as a zip file based on its content rather than its extension. Try downloading using the AWS CLI or SDK to see if the issue persists.
-
Compression Settings: Ensure that you haven't accidentally enabled any compression settings for .pptm files in your upload process.
-
S3 Transfer Acceleration: If you're using S3 Transfer Acceleration, disable it temporarily to see if it's affecting the file extension.
To resolve this issue:
-
When uploading .pptm files, explicitly set the Content-Type metadata to "application/vnd.ms-powerpoint.presentation.macroEnabled.12".
-
Use the --content-type parameter with the AWS CLI when uploading: aws s3 cp file.pptm s3://your-bucket/ --content-type "application/vnd.ms-powerpoint.presentation.macroEnabled.12"
-
If using SDK or custom code for uploads, ensure you're setting the correct Content-Type.
-
Double-check any pre-processing or post-processing steps in your workflow that might be affecting these specific files.
If the issue persists after trying these solutions, you may need to contact AWS Support for further investigation, as this behavior is not typical for S3 operations.
Sources
XLSX file upload to s3 bucket creates additional enc files | AWS re:Post
AWS S3 tar.gz compressed files issue after download from S3 | AWS re:Post
Why does S3 objects download in gzip ContentEncoding via CLI? | AWS re:Post
Relevant content
- asked 2 years ago
- AWS OFFICIALUpdated 4 months ago
