Direct download of all files on the IIS Site

Source: Internet
Author: User

Http://s.jb51.net/upic/10723.bootskin but in the direct access, but prompts can not open the page, after a large amount of information, began to set.

The solution is to modify the HTTP header information in IIS, mainly by modifying the mime information,

Click the MIME type to modify the extension. Now, in order to download all files, A * character is entered for the extension class. The MIME type was originally intended to be set to application/octet-stream, if you want to download all the file types as EXE, it is invalid.

Finally, I found out Microsoft's official information, and added the application/force-download type!


Set to force all files to be downloaded. Try it.

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.