Skip to main content
Inspiring
June 21, 2018
Answered

Retrieve native file path from HTML5 Drag-n-Drop

  • June 21, 2018
  • 1 reply
  • 567 views

I am trying to develop an extension for Premiere Pro that allows the user to drag and drop files from Finder/Explorer into the panel.

It seems the regular HTML5 drag and drop works fine (https://html5demos.com/file-api)

However, this doesn't get me what I need.  I need the actual native file path of the dragged file.

Is this possible?

Thanks,

Bryan

This topic has been closed for replies.
Correct answer bbryabb

I take it back, it does indeed work; I was logging the drag event in Chrome, which for some reason showed an empty array for "event.dataTransfer.files".  But in fact, that array is not empty.

1 reply

bbryabbAuthorCorrect answer
Inspiring
June 21, 2018

I take it back, it does indeed work; I was logging the drag event in Chrome, which for some reason showed an empty array for "event.dataTransfer.files".  But in fact, that array is not empty.