如何在Web服务器上设置流式内容的只读标志

时间:2021-02-03 22:37:53

Is there a way include or suggest a read only flag as part of a content-disposition: attachment; filename=document.doc or other http header?

有没有办法包含或建议只读标志作为内容处置的一部分:附件; filename = document.doc或其他http标头?

1 个解决方案

#1


I would strongly suspect not. Typically, you don't have any control over the browser's local filesystem (as it should be) so you can't specify that a file is read-only, archive, hidden, etc.

我强烈怀疑不会。通常,您无法控制浏览器的本地文件系统(应该如此),因此您无法指定文件是只读,存档,隐藏等。

#1


I would strongly suspect not. Typically, you don't have any control over the browser's local filesystem (as it should be) so you can't specify that a file is read-only, archive, hidden, etc.

我强烈怀疑不会。通常,您无法控制浏览器的本地文件系统(应该如此),因此您无法指定文件是只读,存档,隐藏等。