Welcome Guest Search | Active Topics | Sign In | Register

How to prevent drop files to EO.WebBrowser Options
jfuruya
Posted: Tuesday, November 8, 2016 8:14:52 PM
Rank: Newbie
Groups: Member

Joined: 10/25/2016
Posts: 3
Is there way to prevent drop files to EO.WebBrowser?
(e.g. GMail, Google Drive, Office365 OneDrive...)
eo_support
Posted: Wednesday, November 9, 2016 10:09:42 PM
Rank: Administration
Groups: Administration

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

There are different types of drop files. The HTML 5 file upload allows you to drop file to upload. That can not be turned off. Another type of drop file is when you drop a regular file (such as HTML, image file, etc) into the WebView will load that file. That can be turned off by setting this property to false:

https://www.essentialobjects.com/doc/eo.webbrowser.webview.allowdropload.aspx

Thanks!
jfuruya
Posted: Thursday, November 10, 2016 12:54:39 AM
Rank: Newbie
Groups: Member

Joined: 10/25/2016
Posts: 3
Thank you for reply!

I want to prevent HTML 5 file upload.

I can suppress the file chooser(by clicking input[type=file]) by implementing WebView's FileDialog event.
But I can't prevent drag and drop files.

You said,
> The HTML 5 file upload allows you to drop file to upload. That can not be turned off.
Can't I realize it by low level way?(Win32API, OLE, COM etc.)

Thanks.
eo_support
Posted: Thursday, November 10, 2016 8:30:55 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,229
No. There is no supported way to turn that off. Sorry about it!
jfuruya
Posted: Thursday, November 10, 2016 11:24:41 AM
Rank: Newbie
Groups: Member

Joined: 10/25/2016
Posts: 3
I understood it.

We feel that EO.WebBrowser's interface is very developer friendly.
I would be glad if this feature is implemented in the future.

Thanks a lot!


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.