directory-upload icon indicating copy to clipboard operation
directory-upload copied to clipboard

Should Directory be cloneable?

Open inexorabletash opened this issue 8 years ago • 2 comments

Scenario:

  • User drag-drops a directory onto a page
  • Page wants to delegate to its controlling Service Worker, so uses postMessage()

This could be done by traversing the directory structure, minting paths, and posting an array of (path, File) pairs, but if we're introducing a Directory primitive it seems like it should be cloneable.

inexorabletash avatar Mar 01 '16 01:03 inexorabletash

In firefox we are implementing them as clonable, but would be nice to have this defined in the spec. I think Directory should clonable, exactly like File and Blob are.

bakulf avatar Mar 22 '16 15:03 bakulf

Yeah, we should make this explicit in the spec.

jwatt avatar Mar 23 '16 00:03 jwatt