Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我们在我们的服务器上激活了 WebDAV。当我们尝试使用内容类型“application/msword”从服务器下载 word 文件时,会显示一个 WebDAV 身份验证弹出窗口。我不想要这个弹出窗口。该文件应该只是下载并打开,而不
我可以避免这种情况的唯一方法是给它内容类型“应用程序/八位字节流”。
这是执行此操作的首选方法吗?
不,内容类型应该保持原样,正确指示类型。
弹出窗口可能来自 Microsoft Office,它试图以读/写模式打开文档。我认为这取决于 Office 版本它的工作原理以及如何禁用它(因此您可能可以在 MSDN 的某个地方找到答案)。