-
Notifications
You must be signed in to change notification settings - Fork 751
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Epic] Add support for FileOpenPicker #508
Comments
Greetings, any news on this? |
howdy @mfe-, we would accept a pull-request that implements this, even if it was a partial implementation for a single platform. I have set aside time to pair with folks like yourself to help with contributing features to the code base. Let me know if you are keen. |
Hi @ghuntley I'm afraid I don't know much about mono wasm and how the Uno platform works. As I'm still interested in this topic, I'm reading into it and let you know when I'm ready. |
After gathering pieces on the internet, here is something that is almost working for wasm:
|
Note: it's easier to directly set the html image src:
The problem is that we need a mecanism to identify the correct image. Some tag that would be set in xaml and pass trough to html for example. |
Here we go 😄
|
Created separate issue for macOS implementation #3890. |
There is a Native File System API which is implemented in Chromium browsers, and can be enabled via a flag, though the W3C spec is still marked as a Draft. Mozilla seems to be working on the spec as well (see here). For early adopters, it could be worth adding FileOpenPicker support via this API. When the Native File System API is finalized, should the API interfaces change, they can be updated in Uno. edit: Looking into it further, "Original trial" means you need to request a token from Google to use the API before it's ready. The token is locked to a specific origin, has a usage limit, and the entire feature will be disabled (e.g. they outright remove the flag) if used by more than 0.5% of all Chrome page loads. So it won't be feasible to add this for everyone in WASM right now. |
Closing this for now, only GTK missing, which has an open issue. |
I'm submitting a...
Current behavior
The FileOpenPicker works on UWP, but not on any other platform.
Expected behavior
The FileOpenPicker works an all platforms.
Child issues
Minimal reproduction of the problem with instructions
Simply make a call to the FileOpenPicker from Windows.Storage.Pickers.
Environment
Affected platform(s):
The text was updated successfully, but these errors were encountered: