mmozeiko / RcloneBrowser

Simple cross platform GUI for rclone
https://mmozeiko.github.io/RcloneBrowser
The Unlicense
1.32k stars 419 forks source link

Drag and drop to dropbox account #143

Open sundoulos2 opened 5 years ago

sundoulos2 commented 5 years ago

openSuse Tumbleweed, RcloneBrowser 1.2, Qt 5.12 Drag and drop from Dolphin to a GoogleDrive account in RcloneBrowser works properly. Drag and drop from Dolphin to a dropbox account in RcloneBrowser gives the following error: "Failed to copy: json: cannot unmarshal object into Go value of type string"

sundoulos2 commented 5 years ago

Started working, not sure why.

sundoulos2 commented 5 years ago

Figured it out! And it's kinda weird.

If you drag a file from Dolphin to the "root" directory on a Remote, in the Upload window the Destination shows up as RemoteName:. Note the period after the semi-colon in the location. What happens when you Run the job depends on the kind of account.

GoogleDrive: the job runs and a folder named "." is created where the file is then stored. Dropbox: running the job throws the above error.

Work-around: if I remove the period after the semi-colon in the Destination location, the file uploads to the correct location on both GoogleDrive and Dropbox. Kind of a pain to have to do that for each file, but it works.

Also, does drag and drop only work for one file at a time by design? It would be helpful to be able to drag and drop multiple files to the same location on the Remote.