What determines if a downloaded file should be sav

2019-07-29 07:42发布

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条回答
狗以群分
2楼-- · 2019-07-29 08:20

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.

查看更多
登录 后发表回答