HREF for .doc file works ... HREF for .docx does not work

Strange ... When I create HREF for .doc, the browser behaves correctly, and onclick allows the user to download the file.

If I have a HREF for .docx, it does not ask the user to download the file, but it displays the error page "Page not found" in the file URL.

Any ideas?

+3
source share
2 answers

Ok, just got it ... This is an IIS MIME type header parameter that needs to be added: .doc application / MSWord

+2
source

Do not overlook the most obvious answer, but does the file exist and is the link correct?

+1
source

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


All Articles