Skip to content

How to get the original path of a dragged file #74

@designosis

Description

@designosis

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions