How to get the original path of a dragged file
designosis opened this issue · 0 comments
designosis commented
When I drag/drop /Volumes/Drive12/project3/export_8.csv
, the file.fullPath
= /export_8.csv
.
You mention this is due to browser security restrictions. However the app I'm building does file management, which requires the complete path (moving files from any place to any other).
There's a preview-an-image-before-it-is-uploaded thread on stackoverflow that suggests using URL.createObjectURL()
or FileReader.readAsDataURL()
, however I don't see how to implement this with drag-drop.
Is there a workaround to retrieve the complete filesystem path of a dragged file?