We have WebDAV activated on our server. And when we try to make a download of a word fil开发者_StackOverflow中文版e from the server with the content-type "application/msword" a WebDAV authentication popup is shown. I do not want this popup. The file should just be downloaded and opened without
The only way I can avoid this, is giving it content-type "application/octet-stream".
Is that the preferred way to do this?
No, the content type should stay what it is, correctly indicating the type.
The popup likely comes from Microsoft Office, which tries to open the document in read/write mode. I think it depends on the Office version how this works exactly, and how it could be disabled (so you'll probably can find the answer somewhere on MSDN).
精彩评论