From 2f0b39b8dc80ec90796edaf37c829a854efe9671 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eduard=20M=C3=BCller=20/=20taktik?= <11521600+emuell@users.noreply.github.com> Date: Wed, 25 May 2022 12:16:49 +0200 Subject: [PATCH] @uppy/dashboard: use webkitRelativePath when querying a file's relative path (#3766) - fixes missing "relativePath" meta property when adding files via the "Browse Folder" link in the dashboard with Chrome or Edge --- packages/@uppy/dashboard/src/Dashboard.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/@uppy/dashboard/src/Dashboard.jsx b/packages/@uppy/dashboard/src/Dashboard.jsx index f369bd0572..df0fccbdc4 100644 --- a/packages/@uppy/dashboard/src/Dashboard.jsx +++ b/packages/@uppy/dashboard/src/Dashboard.jsx @@ -380,7 +380,7 @@ export default class Dashboard extends UIPlugin { meta: { // path of the file relative to the ancestor directory the user selected. // e.g. 'docs/Old Prague/airbnb.pdf' - relativePath: file.relativePath || null, + relativePath: file.relativePath || file.webkitRelativePath || null, }, }))