|
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;
}
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,229
|
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.aspxAs soon as we have that, we will be happy to investigate further. Thanks!
|
|
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.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,229
|
Great! Glad to hear that. Please feel free to let us know if you have any more questions.
Thanks!
|
|