Closed tormodAase closed 3 years ago
Duplicate of #89
This is in the works, though! See #300
While a mode
option was added to showDirectoryPicker()
, it's not possible to do the same with showOpenFilePicker()
, which the original post mentioned, but the Issue was then merged with #89, which only looked at the showDirectoryPicker()
part.
This came up now again in the context of the Intent to Ship for Android.
CC: @joelhockey
There's no way to send only one permission request if you need write access. That is annoying. There should be a way to define which permissions you need in the showDirectoryPicker/showFilePicker methods, reducing permission requests by 50% (from 2 to 1) when you need write access.
Example:
This code sends two requests to the user. First a read permission request, followed by a write permission request.
If there were some way to define which permissions you need in the showDirectoryPicker method, we could reduce the # of requests to 1: