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

FileSystemHandle Unique ID #764

Closed
1 task done
a-sully opened this issue Aug 12, 2022 · 3 comments
Closed
1 task done

FileSystemHandle Unique ID #764

a-sully opened this issue Aug 12, 2022 · 3 comments
Assignees
Labels
Progress: pending external feedback The TAG is waiting on response to comments/questions asked by the TAG during the review Resolution: validated This is for early reviews where we largely support the direction the work is going in. Review type: CG early review An early review of general direction from a Community Group Venue: WHATWG Venue: WICG

Comments

@a-sully
Copy link

a-sully commented Aug 12, 2022

Wotcher TAG!

I'm requesting a TAG review of FileSystemHandle Unique ID for the File System Access API.

Currently, FileSystemHandle objects can be opaquely serialized by the browser to be stored as values in IndexedDB. But there is no way for a site to generate a string from script which is guaranteed to be uniquely identifying for the file referenced by the FileSystemHandle. Several developers have requested this.

In the proposal, FileSystemHandles vend string IDs. The IDs uniquely identify the file that is referenced, but their validity is tied to the site and storage to maintain privacy guarantees.

Further details:

  • I have reviewed the TAG's Web Platform Design Principles
  • The group where the incubation/design work on this is being done (or is intended to be done in the future): whatwg
  • The group where standardization of this work is intended to be done ("unknown" if not known): whatwg
  • Existing major pieces of multi-stakeholder review or discussion of this design: whatwg/fs/pull/46. This is still an early proposal and we haven’t received feedback yet
  • Major unresolved issues with or opposition to this design:
  • This work is being funded by: Google

We'd prefer the TAG provide feedback as (please delete all but the desired option):

🐛 open issues in our GitHub repo for each point of feedback

@a-sully a-sully added Progress: untriaged Review type: CG early review An early review of general direction from a Community Group labels Aug 12, 2022
@torgo torgo added this to the 2022-10-10-week milestone Sep 29, 2022
@ylafon
Copy link
Member

ylafon commented Oct 12, 2022

It really looks like minting a resolver that could be an uuid-urn resolver.
Have you thought about that string being an URL? (Well, URN in that case, but you have a resolver, so it is almost an URL).

@torgo torgo added the Progress: pending external feedback The TAG is waiting on response to comments/questions asked by the TAG during the review label Oct 18, 2022
@ylafon
Copy link
Member

ylafon commented Nov 16, 2022

Closing this as there is nothing problematic here, however it would have been nice to have an answer about returning an uuid-urn instead of just an uuid that matches your need, as you use this as an identifier.
Cheers,

@ylafon ylafon closed this as completed Nov 16, 2022
@ylafon ylafon added the Resolution: validated This is for early reviews where we largely support the direction the work is going in. label Nov 16, 2022
@a-sully
Copy link
Author

a-sully commented Mar 16, 2023

Hi all, apologies for the lack of response. I just realized I had accidentally been filtering emails related to this repo. facepalm

@ylafon you're correct that I've (perhaps naively) proposed using a uuid because that's what matches my use case (i.e. an identifier for a file which is unique per site and persistent until site data is cleared). I'm not too familiar with the range of other options available - what would be the advantage of making this a uuid-urn?

See some previous discussions about ID/URL for more context: whatwg/fs#46 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Progress: pending external feedback The TAG is waiting on response to comments/questions asked by the TAG during the review Resolution: validated This is for early reviews where we largely support the direction the work is going in. Review type: CG early review An early review of general direction from a Community Group Venue: WHATWG Venue: WICG
Projects
None yet
Development

No branches or pull requests

3 participants