开发者

Avoid WebDav requests on request for downloading .doc file

开发者 https://www.devze.com 2022-12-13 23:38 出处:网络
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

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).

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号