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

webkitRelativePath should be relative to which directory? #16

Closed mkruisselbrink closed 7 years ago

mkruisselbrink commented 7 years ago

According to the spec as written "the webkitRelativePath property of each File is set to a relative path from the selected directory to the file.". However that is not what is implemented in chrome. In chrome (apparently intentionally) webkitRelativePath is relative to the smallest common ancestor of all selected files, regardless of if that was actually the directory selected.

inexorabletash commented 7 years ago

Thanks - I'll update.

inexorabletash commented 7 years ago

Other implementers may want to push back on that and consider it a Blink bug, but I'll default to describing the Blink behavior pending further feedback.

inexorabletash commented 7 years ago

Added spec prose, an example, and test. Thanks!