I have some binary files in Tomcat webapp folder, that I wish user to download.
I have following code: Window.open(GWT.getHostPageBaseURL()+result, "_blank", "");
I checked with GWT.log path, and it’s correct – it really points to folder with certain file.
Firefox: Downloads every file as expected (either opens image/xml in new tab or prompts save dialog)
Chrome: Seems to be downloading only .zip from what I tried. Others are ignored, nothing happens.
IE8: Opens image/XML in new IE Window. Others are ignored (f.e ZIP blink new window but won’t prompt save dialog)
What am I doing wrong? Thanks
According to this discussion from GWT-group problem with chrome can be that it blocks popups generated by javascript(or callbacks in GWT), but allows to open new window if it’s result of user interaction(or button click in GWT).