files-community / Files

Building the best file manager for Windows
https://files.community
MIT License
34.1k stars 2.17k forks source link

Bug: Unable to drag and drop files from desktop to Files app #6309

Open Zilla0617 opened 3 years ago

Zilla0617 commented 3 years ago

Description

Unable to move files from computer to Files app. For example, a word file on the desktop; when attempting to drag the file into Files app it will not work

Steps To Reproduce

No response

Expected behavior

I expect the file to move to the desired location

Files Version

v2.0.13

Windows Version

Windows 10 Professional (x64) Build 19043.1266 (21H1)

Relevant Assets

No response

RodrigoBG13 commented 2 years ago

I have the same issue on Windows 11. Can't drag and drop any kind of file from outside the Files app into it.

yaira2 commented 1 year ago

Is this still an issue in the preview build? https://files.community/download/preview

Zilla0617 commented 1 year ago

Yes its still an issue with the preview. Just tried it and it didn’t work

From: Yair @.> Sent: Thursday, October 13, 2022 12:49 PM To: @.> Cc: @.>; @.> Subject: Re: [files-community/Files] Unable to drag and drop files from computer to Files app (#6309)

Is this still an issue in the preview build? https://files.community/download/preview

— Reply to this email directly, view it on GitHubhttps://github.com/files-community/Files/issues/6309#issuecomment-1277905192, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AQ6L2APFAK447GDODKM77WDWDA4RVANCNFSM5FL4LYEQ. You are receiving this because you authored the thread.Message ID: @.***>

yaira2 commented 1 year ago

Can you share a screen recording so I can make sure I'm using the same steps on my end?

Zilla0617 commented 1 year ago

https://user-images.githubusercontent.com/71089409/196580936-a131e083-b7cc-47d5-9186-99e4a6944697.mp4

yaira2 commented 1 year ago

@Zilla0617 it looks like you're still using the stable version in the screen recording, can you try with preview build?

Zilla0617 commented 1 year ago

https://user-images.githubusercontent.com/71089409/196583212-432d878e-ad7b-4777-9d88-9c89b8814e14.mp4

Same result with preview version

yaira2 commented 1 year ago

Thank you for the recordings, I can confirm that I've tried these steps and cannot reproduce the issue. I think we need to continue trying to reproduce this on our end before we can work on a fix.

hecksmosis commented 1 year ago

Windows 11 21H2 here (Files 2.4.8.0): It doesn't let me drag items to the main file list, only to the pinned folders on the sidebar.

yaira2 commented 1 year ago

Can you try again in the latest preview? We made some changes that we think will help.

Zilla0617 commented 1 year ago

Ok, I’ll try. Where can I download the latest preview?

From: @.> Sent: Sunday, March 19, 2023 4:44 PM To: @.> Cc: @.>; @.> Subject: Re: [files-community/Files] Bug: Unable to drag and drop files from desktop to Files app (#6309)

Can you try again in the latest preview? We made some changes that we think will help.

— Reply to this email directly, view it on GitHubhttps://github.com/files-community/Files/issues/6309#issuecomment-1475391773, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AQ6L2AJMEPLAUQ6YPPB77PDW45V35ANCNFSM5FL4LYEQ. You are receiving this because you were mentioned.Message ID: @.***>

Josh65-2201 commented 1 year ago

https://files.community/download

Zilla0617 commented 1 year ago

It still doesn’t in the latest preview version, 2.4.54.0. Is there some setting I’m missing when it comes to turning on this feature, it never works for me.

From: @.> Sent: Sunday, March 19, 2023 4:49 PM To: @.> Cc: @.>; @.> Subject: Re: [files-community/Files] Bug: Unable to drag and drop files from desktop to Files app (#6309)

https://files.community/download

— Reply to this email directly, view it on GitHubhttps://github.com/files-community/Files/issues/6309#issuecomment-1475392712, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AQ6L2APW3CGO6H7VPEKGU4LW45WL5ANCNFSM5FL4LYEQ. You are receiving this because you were mentioned.Message ID: @.***>

ZCRP commented 1 year ago

i am here for the same problem i come form my own post #12136

nitesh31mishra commented 1 year ago

I can see this issue resolved in the latest version of Windows 11(V-22H2)

Zilla0617 commented 1 year ago

Unfortunately, I’m not on Windows 11. With latest version from the Microsoft Store on Windows 10 (.2965) I still encounter the same issue.

From: Nitesh @.> Sent: Thursday, May 18, 2023 4:50 PM To: @.>(.2965) Cc: @.>; @.> Subject: Re: [files-community/Files] Bug: Unable to drag and drop files from desktop to Files app (#6309)

I can see this issue resolved in the latest version of Windows 11(V-22H2)

— Reply to this email directly, view it on GitHubhttps://github.com/files-community/Files/issues/6309#issuecomment-1553627128, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AQ6L2AJAHVRAQ3AABQ6MIGTXG2DRXANCNFSM5FL4LYEQ. You are receiving this because you were mentioned.Message ID: @.***>

Lukiluc29 commented 1 year ago

Moving from the desktop to the Files application currently works on my stable version (v2.5.1.0) but the reverse does not work for me (moving the Files application to the desktop).

https://github.com/files-community/Files/assets/128183422/e03dbe8b-8686-46b6-b6d3-ae9cc2f944ec

hishitetsu commented 1 year ago

@Zilla0617 could you upload debug.log of the failed drag and drop?

QuaintMako commented 1 year ago

The drag and drop process works both ways on 2.5.21.0 Preview for me.

I'm on a W10-10.0.19045.3208 in non-admin process.

Lukiluc29 commented 1 year ago

For me too, but the only issue is that when we move an item from Files to the desktop, it displays a context menu, and then we have to click on "Move here".

hishitetsu commented 1 year ago

I can't reproduce it either. However, it seems that some users actually fail to drag and drop.

Lukiluc29 commented 1 year ago

I can't reproduce it either. However, it seems that some users actually fail to drag and drop.

You should ask on Discord if some users are unable to drag and drop.

idelarca commented 10 months ago

Has this issue been resolved? I recently purchased the app in the Microsoft App Store in Windows 11. For whatever reason, I can't drag and drop any kind of file from outside the Files app into it nor can I drag and drop a file between folders in the Files app. Any suggestions?

Josh65-2201 commented 10 months ago

No as it would be closed. This is only an issue with the desktop to Files though. It sounds like you are running Files as admin. You have to enable UAC (User access control) in Windows and don't use the run as admin option.

idelarca commented 10 months ago

Okay. Thanks.

willibrandon commented 8 months ago

When dragging a file from File Explorer to Files, Files sets the AcceptedOperation when the file is on the same drive to DataPackageOperation.Move. Mentioned previously, and I've confirmed, that move operation does not succeed.

However, when dragging a file from File Explorer file to Files, Files sets the AcceptedOperation to DataPackageOperation.Copy when the file is on a different drive. In my testing, that copy operation does succeed.

For some reason it seems that when dragging a file from File Explorer and the AcceptedOperation has been set to DataPackageOperation.Move, the drop event never fires.

willibrandon commented 8 months ago

I could submit a PR to help facilitate the discussion.

yaira2 commented 8 months ago

Fyi @hishitetsu @gave92

willibrandon commented 8 months ago

After more testing, my original analysis was off.

I'm unable to drag and drop from Explorer only when dragging a file from the Windows recent files and/or favorites list. This is on a Windows 11 machine. When I drag and drop from a normal folder, the move operation works as expected.

I believe my issue is unrelated to this issue.

willibrandon commented 8 months ago

Closing #14454 since I no longer believe that would be an appropriate solution.

willibrandon commented 8 months ago

Honestly, I think the issue others have had here dragging and dropping from Explorer is when Files is running elevated. The same problem exists if you run Notepad elevated (Right click | Run as Administrator), and try and drag-and-drop a file from Windows Explorer.

https://web.archive.org/web/20190118125513/https://blogs.msdn.microsoft.com/patricka/2010/01/28/q-why-doesnt-drag-and-drop-work-when-my-application-is-running-elevated-a-mandatory-integrity-control-and-uipi/

yaira2 commented 8 months ago

I've been able to repro them without running Files as admin.

willibrandon commented 8 months ago

I've been able to repro them without running Files as admin.

Interesting. I'll keep looking and see if I can learn more. Drag and drop is an area that I like to help out with if possible.