Answer the question
In order to leave comments, you need to log in
Files not loading in Chrome 18?
Welcome all.
There is the following part of the Nginx configuration:
location /download {
alias /media/web;
types { }
default_type application/octet-stream;
}
Answer the question
In order to leave comments, you need to log in
By setting Content-Type: application/octet-stream, you only deprive the client of the ability to recognize the file type from the headers. In some browsers, this results in the download of the file.
To download files, you need to use the Content-Disposition header with the attachment parameter. Spoiling the Content-Type is not worth it, because you thereby prevent the browser from prompting the user to open the file immediately after downloading in the desired program.
tools.ietf.org/html/rfc6266
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question