The browser tries to open the file inside the tab. attachment : The browser forces a download dialog box.
If using CloudFront, invalidate the cache for that file path after updating S3 metadata. s3 url download instead of opening in browser
The browser decides how to handle a file based on HTTP headers sent by Amazon S3. The browser tries to open the file inside the tab
To help find the best solution for your project, let me know: What or framework does your app use? Are you using a CDN like CloudFront? Do your files need to be public or private ? s3 url download instead of opening in browser
To force the browser to download the file instead of opening it, you must configure the HTTP header. Understanding the Content-Disposition Header