Too bad that deleteAfterDownload cannot be safely used, because we need that the fileDocument is deleted asap.
Now I suggested to change the flow:
- generate the fileDocument with my java-action + add an expire-datetime
- download the document, and only allow this if the datetime is not expired
Unfortunately downloading in IE causes problem on my machine (IE 7) at least.
What happens is that I press the "download microflow-button", I get the (previously mentioned) information-bar. When I click "download file" the Mendix-portal refreshes and sends me to my default homepage.
When I retry downloading, this keeps happening.
this topic points to some security settings in IE (this link), but I can't manipulate the system settings (are managed by my system administrator)
Is there a workaround?
I really recommend not to use DeleteAfterDownload, the download will always be reinitialized by IE (and other browsers as well) if blocked for a security message the first time.