selectlocalfiles not firing for gmail attachments

jeremey's Avatar

jeremey

27 Jan, 2012 08:00 PM via web

Hi, using the latest build of awesomium (1.6.4) either in the c# tabbed browser sample or the VB WPF sample, when trying to attach a file in Gmail the selectlocalfiles event does not fire. Instead, Awesomium does create an upload window but the window is placed behind my application. Can anyone provide a workaround for supporting Gmail attachments?
thanks
Jeremey

  1. Support Staff 2 Posted by Perikles C. Stephanidis on 30 Jan, 2012 03:00 PM

    Perikles C. Stephanidis's Avatar

    Hello,

    Here are some details concerning this issue:

    • The reason SelectLocalFiles is not fired for Gmail attachments is that Google is using Flash to launch the OpenFile dialog and handle attachments. If you do not intend to ever load Flash in your WebControl, a workaround would be to set WebCoreConfig.EnablePlugins to false during the WebCore's initialization.
    • The reason the Flash generated OpenFile dialog is placed behind your application's main window, is that Flash requires the handle of a parent window (HWND) in order to properly place such child windows. We currently do not provide a method for setting such a handle, but it is in our plans for 1.7.

    Regards,
    Perikles

Reply to this discussion

Internal reply

Formatting help or Preview

Attached Files

You can attach files up to 10MB

What is two plus two?

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.