The role and usage of Content-Disposition in the header. Content-disposition is an extension of the MIME protocol. The MIME protocol instructs the MIME user agent how to display additional files. Content-disposition can actually control the Content
Content-disposition is an extension of the MIME protocol, which indicates how the MIME user agent displays the attached file. Content-disposition In fact, you can control the content of the user request to save as a file when a default file name is
Content-disposition is an extension of the MIME protocol, and the MIME protocol indicates how the MIME user agent displays additional files. Content-disposition can actually control when the user requests the content to save as a file, provide a
When I heard a colleague discuss JSP Excel file output, there was an export button on the page to export the query results to an Excel file for users to download. Some people say that they want to use POI to generate a temporary Excel file in the
When you serve a document from a Web server, you might want to immediately prompt the user to save the file directly to the user's disk, without opening it in the browser. however, for known mime (Multipurpose Internet Mail Extensions) types such as
Response. setheader ("content-disposition", "attachment; filename=123_file .txt ")
The first-mover file name is stored in the data warehouse on the 8th. The file name must be a Chinese file 123.txt and then downloaded as follows:Response.
Excerpt from: http://blog.csdn.net/wangzhi_821/article/details/5047777File download often appears the following problems: Response.setheader ("Content-disposition", "attachment; Filename=" +as+ ");If the as directly in the Chinese name, it will be
In Firefox, You need to wrap filename with double quotation marks to get the desired name. Otherwise, if there is space, the part after the space will be discarded.
IE converts spaces to _. Therefore, the name must be processed by the HttpUtility.
Today's mission? Reading of files under Web engineering? Complete file download after logging into the system? Mall System Registration function.Teaching navigationTeaching objectivesMastering response Setting the response headerMastering the
The browser determines how to display the returned message body Content based on Content-Type. The following describes the Content-type, that is, the Type of the HTTP request header, if you are interested in content-type, you must know in advance
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.