How to force file upload on IIS 6.0 server

I am using IIS 6.0. I have a file without the extension stored on my server. If I try to download this file, it will give me page 404, how can I get the server to send the file as downloadable if the file exists

+4
source share
1 answer

For IIS to download a file, it needs to have a file extension, since in IIS there will be only server file types that have been registered in the MIME Types collection. And in order for the file type to be registered under the MIME type, it needs an extension.

You can create a simple ASP.NET HttpHandler that issues a file. This will work.

+3
source

Source: https://habr.com/ru/post/1337921/


All Articles