Interoperable File.webkitRelativePath property

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

Specification

Working draft or equivalent

Status in Chromium

Blink>Forms


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
  • Shipped
  • Shipped
  • Positive

Owner

Last updated on 2018-11-14