IE7 issue - cannot download streamed file when Automatic prompting for file downloads is disabled

狂风中的少年 提交于 2019-12-04 07:19:31

The setting that you mention is designed to prevent automatic downloading of files and that is exactly what you are trying to do. If you want downloads to work even if this option is selected, you must download a file as a direct result of user action.

User clicks on a link that leads to a downloaded file -> works correctly.

User clicks on a button, that in javascript redirects to a downloaded file -> works correctly.

User clicks on a button, that in javascript opens a popup, and that popup requests a file -> this fails.

User clicks on a button, that in javascript delays execution of redirecting to a downloaded file -> this fails.

Same thing with popups and popup blockers. Direct action is permitted, indirect action is not.

rans

in actionBean use StreamingResolution return value in the download method..

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