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
It appears that media uploaded to S3-compatible buckets all get uploaded with a content-type: application/octet-stream. So using the new CDN redirect URL setting (#2574), attempting to view images via the CDN causes the browser to download the file instead of displaying the image.
The presigned URLs correctly accounted for content-type, but those aren't used when using the CDN redirect.
Describe the solution you'd like.
Files should be saved to the bucket with a proper content-type if we can detect it.
Describe alternatives you've considered.
Using edge rules to set the content-type header based on file extension. This doesn't seem like the correct place to do this.
Additional context.
Serving the images inline works fine, this is only a problem when "Opening image in new tab" or otherwise directly accessing the image URL.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem ?
It appears that media uploaded to S3-compatible buckets all get uploaded with a content-type: application/octet-stream. So using the new CDN redirect URL setting (#2574), attempting to view images via the CDN causes the browser to download the file instead of displaying the image.
The presigned URLs correctly accounted for content-type, but those aren't used when using the CDN redirect.
Describe the solution you'd like.
Files should be saved to the bucket with a proper content-type if we can detect it.
Describe alternatives you've considered.
Using edge rules to set the content-type header based on file extension. This doesn't seem like the correct place to do this.
Additional context.
Serving the images inline works fine, this is only a problem when "Opening image in new tab" or otherwise directly accessing the image URL.
The text was updated successfully, but these errors were encountered: