You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Windows.Storage.Pickers.FileOpenPicker does not work in Wasm. #35
kind/enhancementNew feature or requestplatform/wasm 🌐Categorizes an issue or PR as relevant to the WebAssembly platformproject/non-ui ⚙️Categorizes an issue or PR as relevant to winrt (non-ui)
As I said, I now migrate some of UWP's functionality to the browser, thanks to Uno's support for WebAssembly.
I need to open a local file in my browser. In UWP, the following code works fine:
`
Windows.Storage.Pickers.FileOpenPicker fileOpenPicker = new Windows.Storage.Pickers.FileOpenPicker();
fileOpenPicker.FileTypeFilter.Add(".jpg");
var jpgFile =await fileOpenPicker.PickSingleFileAsync();
if (jpgFile!=null)
{
tb_filename.Text = jpgFile.Name;
}
`
But the above code does not work in Wasm. Does this alternative code work? Thank you!
@jeromelaban This method is not supported on iOS and Android, I tried to use Xam.Plugin.Media, but there was a problem after integrating prism, so I can't use the picture library right now.
kind/enhancementNew feature or requestplatform/wasm 🌐Categorizes an issue or PR as relevant to the WebAssembly platformproject/non-ui ⚙️Categorizes an issue or PR as relevant to winrt (non-ui)
Activity
jeromelaban commentedon Jun 13, 2018
Those apis have not been implemented in WASM yet, and those will probably need a bit of typescript in the Uno.UI.Wasm project to work properly.
Ali-YousefiTelori commentedon Jun 24, 2018
how we can run typescript in c# code and how use browser file chooser?
HaoLife commentedon Nov 8, 2018
@jeromelaban This method is not supported on iOS and Android, I tried to use Xam.Plugin.Media, but there was a problem after integrating prism, so I can't use the picture library right now.
MartinZikmund commentedon Feb 12, 2021
Closing in favor of #4028
Merge pull request unoplatform#35 from unoplatform/pj/android-work
chore: MOAR LOGGING
chore: MOAR LOGGING
fix(telemetry): Update Uno.DevTools.Telemetry to 1.4.11