nextcloud / android

📱 Nextcloud Android app
https://play.google.com/store/apps/details?id=com.nextcloud.client
GNU General Public License v2.0
4.27k stars 1.77k forks source link

Add option to ignore subfolders for auto-upload #8770

Open baschi29 opened 3 years ago

baschi29 commented 3 years ago

Is your feature request related to a problem? Please describe.

I'm currently struggling to set up automatic upload for images that I saved to the internal storage from within signal. Those images get saved in \pictures , but not in a subfolder like eg. telegram (\pictures\telegram). This arises a problem, as the only option present to me is to sync the whole \pictures folder. This will end up syncing all images, but will create subfolders for telegram etc. in nextcloud - something I try to avoid. I would like to have all my images in one nextcloud folder.

Describe the solution you'd like

I think the simplest and best solution to this problem would be to add an option to ignore subfolders when setting up automatic upload for a specific folder. This way it would be possible to enable automatic upload for each (sub-)folder separately and as a result to have all images in one folder on ones nextcloud.

Describe alternatives you've considered

I've thought about an option to upload all images of subfolders into the directory specified in the auto upload settings of the main folder, but I don't think that's a good solution as it may lead to a lot of unnecessary file conflicts and would also reduce the control one has over choosing/excluding specific subfolders in comparison to my first solution.

Additional context

I recognize that my specific case with saving images from signal is something that can also be worked on from their side. Nonetheless I think this option has more use cases and would greatly add to the ability to customize automatic uploading to Nextcloud from Android.

Bun-Bun commented 1 year ago

I am also needing this.

My Camera app is causing me performance issues with Nextclodu. The structure is this PHOTOGRAPHY_PRO\Burst{abillionfolders}. My camera app creates a new folder for every burst set of photos. Over the course of a couple hours I generated 200 such folders and over 3000 files. The scanning from Nextcloud at a time of heavy i/o from the camera app (it is bursting 20-30 images per second) is causing performance issues with my phone and for next cloud to get into some weird loop and queue up 20,000 uploads. I do not want to upload every single one of these burst photos as the point is to go back and select the ones I do want to keep which then go to the main PHOTOGRAPHY_PRO folder, which I do want to upload. I simply want to ignore all sub folders of the PHOTOGRAPHY_PRO or Burst folder.

This is currently breaking to my workflow and I am unable to have Nextcloud on my phone as a result.

SvenLieber commented 7 months ago

Similar issue here. I would like to auto upload all of my (received) WhatsApp images. The way how WhatsApp stores the images is one huge folder with all images and a subfolder sent with all images that were sent.

I would like to ignore the pictures that I have sent (Most likely I have taken the images I sent with my camera, so they are already auto-uploaded via my camera folder).

Possible generic solutions that I can think of would be the possibility to

joshtrichards commented 2 weeks ago

Related: #1498 (opposite behavior for custom folders)