开发者

File download: show checkbox to remember action if file is not a direct link

开发者 https://www.devze.com 2023-01-14 18:39 出处:网络
See screenshot. When creating 开发者_Python百科a direct link to a file to be downloaded, IE offers a checkbox to remember the setting.

File download: show checkbox to remember action if file is not a direct link

See screenshot. When creating 开发者_Python百科a direct link to a file to be downloaded, IE offers a checkbox to remember the setting. When pushing a file to the client using a script, this checkbox never seems be shown. Is there a way to force its visibility?

René


I can't say for sure without seeing your download script, but I'm pretty sure the checkbox gets shown when the MIME content type of the requested resource is something meaningful (e.g.application/msword).

My guess is that your download script serves application/octet-stream as the content type.

You would have to make your script serve application/msword as the content type.

0

精彩评论

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