WICG / entries-api

Spec defining browser support for file/directory upload by drag-and-drop
https://wicg.github.io/entries-api/
Other
41 stars 9 forks source link

Should webkitRelativePath preserve common ancestors? #18

Closed inexorabletash closed 5 years ago

inexorabletash commented 6 years ago

Spec has:

In addition, the webkitRelativePath property of each File` is set to a relative path from the shortest common ancestor directory of all selected files to that file, including that ancestor in the path. (Therefore this may be a subdirectory of the selected directory rather than the directory itself.)

This is what Chrome does, but (1) none of the other implementations did and (2) we've had bug reports in Chrome about this.

I'd encourage other implementations to NOT follow Chrome here if it's not necessary for web compat, and we should consider changing the spec/fixing Chrome.

inexorabletash commented 6 years ago

Chrome bug is: https://bugs.chromium.org/p/chromium/issues/detail?id=124187