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.
Spec has:
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.