Wisej Ext ClientFileSystem - Error when calling methods

0
0

I am trying to use the Wisej.Ext.ClientFileSystem.ClientFileSystem.xxx methods and I get an error when I am using it at work:

A simple button on a form:

 

using Wisej.Ext.ClientFileSystem;

private async void button1_Click(object sender, EventArgs e)

{

Directory dir = await ClientFileSystem.ShowDirectoryPickerAsync(): –> This thows exception: System.ApplicationException: ‘window.showDirectoryPicker is not a function’

// Same error for below as well

 

var file = await ClientFileSystem.ShowSaveFilePickerAsync(true, filter, fileName); // filter = “json”; fileName = “NewFile.json”

 

}

Any thoughts?

 

Thanks!

  • You must to post comments
0
0

Check if your browser supports the client file api. Probably doesn’t.

  • Aravind Raam
    Browser: Firefox Version: 107.0.1 As per https://caniuse.com/fileapi – it says it should work?
  • Aravind Raam
    Also tried switching to Chrome (Version # 108.0.5359.99) and get the same error. MS Edge Version 108.0.1462.46 – same error
  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.