Dragging remote files to the desktop


I have an app that displays a tree of remote files, and I’d like the user to be able to select one or more of these files and drag it to a folder on their desktop or anywhere else on the filesystem.

I’ve gotten it working with a single file, using this trick involving the DownloadURL property and some trickery with using a Node server to proxy the download request (since the DownloadURL has no way of passing authentication headers).

Now I’m trying to drag multiple files, and I don’t think DownloadURL can do it.

If I could get the drop target OS path, I could transfer the files using Node. That would work.

Or if I could find a way to add multiple DownloadURLs, that would work.

Or maybe there’s another method I don’t know of. Does anyone have a suggestion? Thanks.