voyent
ice outputResource: download file as save as dialog  XML
Forum Index -> Components
Author Message
angelo.ciciretti

Joined: 16/Jun/2009 00:00:00
Messages: 26
Offline


Hi,
How can I download from outputResource component with as save as dialog?
For example, if I download a PDF resource, PDF viewer is automatically opened. Is it possibile to open always a save with name dialog?
Thanks in advance for a reply.
philip.breau


Joined: 08/May/2006 00:00:00
Messages: 2989
Offline


If you'd like the 'Save as..' dialog to open, set attachment="true" on the ice:outputResource component.

Thanks,
Philip

.
angelo.ciciretti

Joined: 16/Jun/2009 00:00:00
Messages: 26
Offline


Hi, I setted attachment="true" but PDF file is opened directly on viewer.
I tested it with ie8 and chrome,
Is there a way to have the behaviour of "save object as" of the browser?
Thanks.
angelo.ciciretti

Joined: 16/Jun/2009 00:00:00
Messages: 26
Offline


I also tried outputresource icefaces showcase and pdf is always opened on browser with attachment option (I used chrome, safari).
Thanks in advance for a reply.
 
Forum Index -> Components
Go to:   
Powered by JForum 2.1.7ice © JForum Team