doc-exports/docs/obs/umn/obs_faq_101704.html
zhangyue 92e44874e7 OBS UMN DOC
Reviewed-by: Sabelnikov, Dmitriy <dmitriy.sabelnikov@t-systems.com>
Co-authored-by: zhangyue <zhangyue164@huawei.com>
Co-committed-by: zhangyue <zhangyue164@huawei.com>
2024-11-06 14:33:05 +00:00

885 B

Why Does My Browser Try to Download Instead of Displaying the Website File?

A web browser needs to get the correct media type to correctly handle an HTML file by opening the page instead of downloading the file. So, when uploading a website file (for example, index.html) via an API, you need to set its Content-Type header to the correct value text/html in the case of the HTML files.