Welcome Guest Search | Active Topics | Sign In | Register

WebBrowser - Built in Download File Handling Options
FMS
Posted: Thursday, January 16, 2014 8:43:20 AM
Rank: Member
Groups: Member

Joined: 1/13/2014
Posts: 12
Hello,

I am using WebBrowser 2.0.25.0 and I've noticed that there appears to be no default File Download handling. If I navigate to a webpage and click, for example, a zip file, I am not prompted with a save dialog or anything. Looking in the help file, there is a section titled "Customizing File Dialog", which makes it seem that there should be a default file dialog, if I do not handle the event myself.

In my application, I have not attached a handler for the fileDialog event.


If I do not handle the file dialog event manually, should a built in file dialog show to save a file?
FMS
Posted: Thursday, January 16, 2014 8:56:35 AM
Rank: Member
Groups: Member

Joined: 1/13/2014
Posts: 12
Update:

It appears the cause is in the beforeDownload event. If I add a handler for the beforeDownload event and set e.showDialog = true, then the fileDialog event is fired. If I don't do this, the fileDialog event is never fired.

I would like to suggest a change. If the application does not handle the BeforeDownload event, I think it would more useful if the showDialog defaulted to true.
eo_support
Posted: Thursday, January 16, 2014 9:14:34 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,196
Thank you very much for the feedback!
eo_support
Posted: Thursday, January 16, 2014 3:21:25 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,196
Hi,

We have posted a new build that changed the default value to true. Note that even if the default value is true and the default dialog is used, you would still need to handle other download related events to provide download progress UI because there is no default implementation for the download progress UI.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.