Skip to content
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

add selected type to return value of showOpenFilePicker and showSaveFilePicker. #388

Open
rickg-hcl opened this issue Nov 1, 2022 · 1 comment

Comments

@rickg-hcl
Copy link

This issue is in response to a request in this issue:

https://bugs.chromium.org/p/chromium/issues/detail?id=1363637

The returned value should have the selected type, in addition to the list of selected files.

@a-sully
Copy link
Collaborator

a-sully commented Nov 12, 2022

From a spec perspective, we return sequence - the fact that it returns a JS Array that is potentially modifiable is at the bindings layer, not the spec level. We could define custom bindings, but I'm not sure how reasonable that is...

The question of "Given the current API shape, where would we put side data?" seems like a question for folks more familiar with specs. @domenic any thoughts? :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants