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.
精彩评论