Forbid the browser to download files and directly access files such as pdf, etc.

Alibaba Cloud's ftp puts html files, and I want the browser to browse directly instead of downloading

Add parameters after the address: ?response-content-type=text/html;charset=utf-8

http://xxxx/pdf/6212261702005192430-1472288256160-1.html?response-content-type=text/html;charset=utf-8

 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=327046442&siteId=291194637