[GH-ISSUE #435] Suggestion: Drag n drop to download #237

Closed
opened 2026-04-08 16:51:22 +03:00 by zhus · 8 comments
Owner

Originally created by @Mahonzu on GitHub (Aug 21, 2024).
Original GitHub issue: https://github.com/sigoden/dufs/issues/435

Specific Demand

If you drag n drop any direct link to a file into a folder on your system, browser will download file from to that folder. Example: "raw" button in github. This is very useful as it eliminates the need to select a folder when downloading. I would like to have this option in dufs.

Implement Suggestion

Make these links dragable
image

Originally created by @Mahonzu on GitHub (Aug 21, 2024). Original GitHub issue: https://github.com/sigoden/dufs/issues/435 ## Specific Demand If you drag n drop any direct link to a file into a folder on your system, browser will download file from to that folder. Example: "raw" button in github. This is very useful as it eliminates the need to select a folder when downloading. I would like to have this option in dufs. ## Implement Suggestion Make these links dragable ![image](https://github.com/user-attachments/assets/162cf051-1235-43f2-a4e4-35c18960ecd2)
zhus closed this issue 2026-04-08 16:51:22 +03:00
Author
Owner

@sigoden commented on GitHub (Aug 21, 2024):

@ilia-21

I don't understand your request. Could you provide a demonstration video?

<!-- gh-comment-id:2301778051 --> @sigoden commented on GitHub (Aug 21, 2024): @ilia-21 I don't understand your request. Could you provide a demonstration video?
Author
Owner

@Mahonzu commented on GitHub (Aug 21, 2024):

Sure!

https://github.com/user-attachments/assets/30d2315e-dea4-487c-abd0-486cc05934da

I remember this working on windows too

<!-- gh-comment-id:2301816413 --> @Mahonzu commented on GitHub (Aug 21, 2024): Sure! https://github.com/user-attachments/assets/30d2315e-dea4-487c-abd0-486cc05934da I remember this working on windows too
Author
Owner

@sigoden commented on GitHub (Aug 21, 2024):

@ilia-21

It's just a feature of the file browser itself. I've tried it on both LinuxMint and Windows, but it didn't work. It only generated an HTML link.

Have you tried dufs links? I don't think they are much different from GitHub raw links? Both can be clicked to open source files in a browser.

<!-- gh-comment-id:2301831009 --> @sigoden commented on GitHub (Aug 21, 2024): @ilia-21 It's just a feature of the file browser itself. I've tried it on both LinuxMint and Windows, but it didn't work. It only generated an HTML link. Have you tried dufs links? I don't think they are much different from GitHub raw links? Both can be clicked to open source files in a browser.
Author
Owner

@Mahonzu commented on GitHub (Aug 21, 2024):

Yes, I tried dufs links, but they don't drag at all. When I try to drag them, they don't do anything, as if dragging is disabled in the code.
Just to clarify: the problem is not "I'm dragging, but files are not downloading", the problem is "Links are not dragable"

<!-- gh-comment-id:2301843714 --> @Mahonzu commented on GitHub (Aug 21, 2024): Yes, I tried dufs links, but they don't drag at all. When I try to drag them, they don't do anything, as if dragging is disabled in the code. Just to clarify: the problem is not "I'm dragging, but files are not downloading", the problem is "Links are not dragable"
Author
Owner

@sigoden commented on GitHub (Aug 21, 2024):

@ilia-21

How your tried text file like .md or .txt ? Maybe the file format matter.

<!-- gh-comment-id:2301853120 --> @sigoden commented on GitHub (Aug 21, 2024): @ilia-21 How your tried text file like `.md` or `.txt` ? Maybe the file format matter.
Author
Owner

@Mahonzu commented on GitHub (Aug 21, 2024):

Yes, I tried, none of the links are dragable.
Question: are they dragable on your side? Can you repeat the same as I showed with "raw" button, but in dufs, even if it only generates HTML link? If yes that means the problem is on my side

EDIT: I tested myself, and removing dragstart on this line makes links dragable, also suggested feature works as expected
1db263efae/assets/index.js (L491)

EDIT2: In my test removing dragstart does not break drag n drop upload feature. Tested in Firefox 129.0b9

<!-- gh-comment-id:2301858200 --> @Mahonzu commented on GitHub (Aug 21, 2024): Yes, I tried, none of the links are dragable. Question: are they dragable on your side? Can you repeat the same as I showed with "raw" button, but in dufs, even if it only generates HTML link? If yes that means the problem is on my side EDIT: I tested myself, and removing `dragstart` on this line makes links dragable, also suggested feature works as expected https://github.com/sigoden/dufs/blob/1db263efae2853cf90167047acbfa835a844c9c8/assets/index.js#L491 EDIT2: In my test removing `dragstart` does not break drag n drop upload feature. Tested in Firefox 129.0b9
Author
Owner

@sigoden commented on GitHub (Aug 21, 2024):

This function is not universal and doesn't even work properly in Windows.

https://github.com/user-attachments/assets/387e12d4-a519-494f-bce4-2d45b7d2673a

EDIT: I tested myself, and removing dragstart on this line makes links dragable, also suggested feature works as expected

I have no way to confirm the effect. If it's just removing dragstart, you can submit a PR.

<!-- gh-comment-id:2301948663 --> @sigoden commented on GitHub (Aug 21, 2024): This function is not universal and doesn't even work properly in Windows. https://github.com/user-attachments/assets/387e12d4-a519-494f-bce4-2d45b7d2673a > EDIT: I tested myself, and removing dragstart on this line makes links dragable, also suggested feature works as expected I have no way to confirm the effect. If it's just removing `dragstart`, you can submit a PR.
Author
Owner

@Mahonzu commented on GitHub (Aug 21, 2024):

If it's not working in windows I can assume that not much people know/need it. I'll try to find a way to modify it locally.
Thank you for making this amazing software and for your time. Closing

<!-- gh-comment-id:2301967231 --> @Mahonzu commented on GitHub (Aug 21, 2024): If it's not working in windows I can assume that not much people know/need it. I'll try to find a way to modify it locally. Thank you for making this amazing software and for your time. Closing
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sigoden/dufs#237