|
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...)
|
|
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.aspxThanks!
|
|
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.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,229
|
No. There is no supported way to turn that off. Sorry about it!
|
|
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!
|
|