Files icon indicating copy to clipboard operation
Files copied to clipboard

Feature: Allow adding files to zip archives by dragging

Open verdaderoken opened this issue 2 years ago • 10 comments

What's the Problem?

We can't add files to an archive when dragging on top of it image

Solution/Idea

Allow adding files to an archive by dragging them without opening the archive. This way is more convenient than opening the zip. (particularly .7z files) Items are expected to be inside the root directory of the archive.

Requirements

  • Allow adding files to an archive by dragging

Files Version

2.3.9.0

verdaderoken avatar Aug 22 '22 14:08 verdaderoken

You can do that if you set Files as default app for that kind of file extension.

gave92 avatar Aug 22 '22 15:08 gave92

You can do that if you set Files as default app for that kind of file extension.

Tried and doesn't work. Looks like an unsupported file. image

When the archive is opened in explorer: image image

verdaderoken avatar Aug 22 '22 15:08 verdaderoken

Could you try what happens if you set windows explorer as default instead? (and restart the Files app)

gave92 avatar Aug 22 '22 15:08 gave92

Could you try what happens if you set windows explorer as default instead? (and restart the Files app)

Opening the archive works but it opens in a new window of File Explorer image

verdaderoken avatar Aug 22 '22 15:08 verdaderoken

Opening the archive works but..

~Does the archive open in Files or windows explorer?~ In explorer Could you upload the app's debug logs from Files > Settings > Open log location? (There a 2 ".log" files). Thanks!

gave92 avatar Aug 22 '22 15:08 gave92

~Does the archive open in Files or windows explorer?~ In explorer Could you upload the app's debug logs from Files > Settings > Open log location? (There a 2 ".log" files). Thanks!

It worked now. I just re-setted the default to 7zip and back to File Explorer. Thank you!

Last question, is it possible to get it also working for .7z? (Already set to Files (Preview) as default file type)) image image

I can open the .7z just like normal folders in Files app but I can't drag anything on top of its icon or file. Dragging only works if the 7z archive is opened in a tab and the file is dragged onto that tab image

verdaderoken avatar Aug 22 '22 15:08 verdaderoken

Glad it's working! I'll keep this issue open to track the second bug you noticed.

gave92 avatar Aug 22 '22 15:08 gave92

I have the same issue, 7z works but zip doesn't.

yaira2 avatar Aug 22 '22 16:08 yaira2

image

yaira2 avatar Aug 22 '22 16:08 yaira2

Hi, I started looking into this issue but it is fixed for me if you do what @gave92 suggested at the start. Files App needs to be set as default for Both .7z and .zip extensions. There does seem to be an issue where sometimes the app won't detect that the move file action is required to run, you can see it in the video.

Image

https://github.com/files-community/Files/assets/88297220/ee0898a3-8f8e-4db3-866c-c62cdce3f985

br1trs avatar Jun 22 '23 03:06 br1trs