What determines if a downloaded file should be saved as read-only or read-write?

泄露秘密 提交于 2020-02-05 13:58:28

问题


When you write some binary data in the http response stream (of Servlet etc) or using the Content-disposition header, what is the factor that determines whether the downloaded file is saved as readonly or has write permissions ? How can we control whether to make it read-only or not? Is that browser/OS dependant?


回答1:


The only specified parameters for the Content-Disposition header field are filename, creation-date, modification-date, read-date, and size. You may use custom parameters (see ABNF of parameter syntax), but they are will probably not be supported by user agents unless they are registered with the IANA.

So, no, it is currently not possible to set access properties like read only.



来源:https://stackoverflow.com/questions/3785666/what-determines-if-a-downloaded-file-should-be-saved-as-read-only-or-read-write

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!