Welcome Guest Search | Active Topics | Sign In | Register

unable to upload file in cutomized File Dialog Options
kenehpe
Posted: Tuesday, August 23, 2016 3:53:50 AM
Rank: Newbie
Groups: Member

Joined: 8/23/2016
Posts: 3
Hi,

I tried to customize a file dialog for adding "all supported types" in dialog but it was not able to upload file. When I double click a file to upload the window closed with nothing actually uploaded. I checked all the variables in my customized file dialog they were all correct. The uploading feature works fine if I remove customized file dialog. Any idea how can I fix this problem?

Code: C#
webBrowserView.FileDialog += new FileDialogHandler(webBrowserView_FileDialog);

private static void webBrowserView_FileDialog(object sender, FileDialogEventArgs e)
{
    System.Windows.Forms.OpenFileDialog dialog = new System.Windows.Forms.OpenFileDialog();

    dialog.Filter = "All Files (*.*)|*.*|All Supported Types (*.apk;*.ipa;*.appx)|*.apk;*.ipa;*.appx|apk file (*.apk)|*.apk|Apple Device Application File (*.ipa)|*.ipa|*.appx|*.appx";
    dialog.FilterIndex = 2;
    dialog.RestoreDirectory = true;
    dialog.FileName = e.DefaultFileName;

    var res = dialog.ShowDialog();
    if (res == DialogResult.OK)
        e.Continue(dialog.FileName);
    else if (res == DialogResult.Cancel)
        e.Cancel();

    e.Handled = true;
}
eo_support
Posted: Tuesday, August 23, 2016 12:01:00 PM
Rank: Administration
Groups: Administration

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

We tested your code here with the latest build and it works fine. So you may want to check if you are running the latest build. If you are already running the latest build and the problem persists, please try to isolate the problem into a test project and send the test project to us. See here for more details:

http://www.essentialobjects.com/forum/test_project.aspx

As soon as we have that, we will be happy to investigate further.

Thanks!
kenehpe
Posted: Thursday, August 25, 2016 12:04:05 AM
Rank: Newbie
Groups: Member

Joined: 8/23/2016
Posts: 3
Thank you for your help. I tested on latest EO nightly build the uploading feature works fine. Gonna fire a request for purchasing new version.
eo_support
Posted: Thursday, August 25, 2016 9:36:41 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,067
Great! Glad to hear that. Please feel free to let us know if you have any more questions.

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.