win2008 R2 IIS7.5 setting forces all files to download directly _win server

Source: Internet
Author: User

Sometimes we need to force all the files on the site to download

Refer to the following figure settings

1, select the corresponding site-choose MIME type

2. Add Class
File name extension: *
MIME type:application/force-download

3, set "Request Filter" to open "double escape"

The second method: you can Application/octet-stream

The information that is filled out in the MIME type also affects the contents of the HTTP header content-type when the server returns to the client data. This content allows the client to know what information is being transmitted and what program to use to open it. Even if the same file is being transferred, Content-type may cause the client to open it in a different way. If you want to allow the client to prompt the user to download, try Application/octet-stream.

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.