unoplatform / uno

Open-source platform for building cross-platform native Mobile, Web, Desktop and Embedded apps quickly. Create rich, C#/XAML, single-codebase apps from any IDE. Hot Reload included! 90m+ NuGet Downloads!!
https://platform.uno
Apache License 2.0
8.88k stars 718 forks source link

[WASM] `FolderPicker`: .Path not returning absolute path #9849

Open DierkDroth opened 2 years ago

DierkDroth commented 2 years ago

Current behavior

Please see attached repo: .Path is not returning the absolute path.

FolderPicker.zip

Related discussion

Expected behavior

WASM should work as WindowsAppSDK

How to reproduce it (as minimally and precisely as possible)

No response

Workaround

No response

Works on UWP/WinUI

Yes

Environment

Uno.UI / Uno.UI.WebAssembly / Uno.UI.Skia

NuGet package version(s)

No response

Affected platforms

No response

IDE

No response

IDE version

No response

Relevant plugins

No response

Anything else we need to know?

No response

MartinZikmund commented 2 years ago

Unfortunately this is not currently possible, as File System Access API in browsers does not offer absolute paths for security reasons. To persist access to picked folders and files we will need to implement FutureAccessList API - please upvote https://github.com/unoplatform/uno/issues/5343 to support this.

DierkDroth commented 2 years ago

Thanks @MartinZikmund

Curious: how could I add my up vote?

MartinZikmund commented 2 years ago

@DierkDroth here on the issue description -

image
DierkDroth commented 2 years ago

Thanks for educating me @MartinZikmund