The File.webkitRelativePath of the File interface previously returned a value different from other major browsers, now it returns the same value. For example, if a user has the following local files: /tmp/a/foo/bar/1.txt, /tmp/a/foo/2.txt and they selected /tmp with a file chooser dialog, webkitRelativePath in Chrome was: foo/bar/1.txt, foo/2.txt Other browsers, which Chrome now matches, return this: tmp/a/foo/bar/1.txt, tmp/a/foo/2.txt


Working draft or equivalent

Status in Chromium


Enabled by default (tracking bug) in:

  • Chrome for desktop release 72
  • Chrome for Android release 72

Consensus & Standardization

After a feature ships in Chrome, the values listed here are not guaranteed to be up to date.

  • Shipped/Shipping
  • Shipped/Shipping
  • Shipped/Shipping
  • Positive


Search tags

entries-api, webkitdirectory,

Last updated on 2020-11-09