All Products
Search
Document Center

Object Storage Service:0048-00000105

Last Updated:Sep 21, 2026

Problem description

When you access an object from a browser using a standard Object Storage Service (OSS) domain name, the browser may download the object instead of displaying it.

Cause

For buckets created after 15:00 on 2019/09/30, when you use an OSS domain name to access a file whose Content-Type is one of the following,

image/jpeg
image/gif
image/tiff
image/png
image/webp
image/svg+xml
image/bmp
image/x-ms-bmp
image/x-cmu-raster
image/exr
image/x-icon
image/heic

OSS adds the following two headers to the response:

x-oss-force-download: true
Content-Disposition: attachment

The Content-Disposition: attachment header prompts a standard browser to download the object instead of displaying it.

Sample questions

For example, consider a bucket created after 15:00 on September 30, 2019. It contains an object named apple.jpeg with a Content-Type of image/jpeg. When you access this object from a browser using a standard OSS domain name, OSS adds the two headers to the response. The Content-Disposition: attachment header then prompts the browser to download the object instead of displaying it.

GET /apple.jpeg HTTP/1.1
HTTP/1.1 200 OK
Content-Type: image/jpeg
Content-Disposition: attachment
x-oss-force-download: true

Solution

If you do not want the browser to download the object, access the object using a custom domain name. For more information, see Attach a custom domain name.