Skip to content

Commit

Permalink
@uppy/dashboard: use webkitRelativePath when querying a file's relati…
Browse files Browse the repository at this point in the history
…ve path (#3766)

- fixes missing "relativePath" meta property when adding files via the "Browse Folder" link in the dashboard with Chrome or Edge
  • Loading branch information
emuell authored May 25, 2022
1 parent 62b2cbd commit 2f0b39b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@uppy/dashboard/src/Dashboard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
}))

Expand Down

0 comments on commit 2f0b39b

Please sign in to comment.