Skip to content

Feature/multiple upload folders - #260

Open
Confused-Engineer wants to merge 3 commits into
opencloud-eu:mainfrom
Confused-Engineer:feature/multiple_upload_folders
Open

Confused-Engineer wants to merge 3 commits into
opencloud-eu:mainfrom
Confused-Engineer:feature/multiple_upload_folders

Conversation

@Confused-Engineer

Copy link
Copy Markdown

Adds "additional folder upload"

this grants the upload and mapping of multiple directories. See issue:
#47

Also provides the ability to "Upload existing" and "sync now".

I feel it leaves "Automatic picture uploads" and "Automatic video uploads" redundant but I did not think they should be removed. Let me know if other conditions need to be met prior to this getting merged, or if you do not want it merged at all. Thank you.

Confused-Engineer and others added 3 commits November 12, 2026 19:55
Add "Additional upload folders" to the automatic uploads settings, so any
number of device folders can be uploaded automatically besides the camera
picture and video uploads (opencloud-eu#47).

Each folder has its own source folder, file types (pictures, videos, both or
all files), account, upload path, keep/remove behaviour and Wi-Fi/charging
conditions. When adding a folder the user can choose to upload the files
already in it or only new ones, and "Upload existing files" re-queues the
whole folder later. "Upload now" scans all automatic upload folders
immediately.

Folders are stored as extra rows in the existing folderbackup table under a
"Folder uploads:<uuid>" name, plus a new mediaType column (DB 50 -> 51,
auto-migration). Removing an account also removes its folders.

AutomaticUploadsWorker changes, which also benefit camera uploads:
- List source folders with one DocumentsContract query instead of
  DocumentFile.listFiles(), which needed several IPC calls per file and took
  minutes on large camera folders.
- Let listing errors surface instead of returning an empty list, so
  lastSyncTimestamp is no longer advanced past files that were never seen;
  notify the user when access to a folder was lost.
- Serialise scans with a mutex so periodic, foreground and "upload now" runs
  no longer scan in parallel.
Use a 24dp, theme-tinted folder-upload icon like the picture and video
upload entries instead of the 48dp untinted ic_folder, and drop the icons
inside the folder list screen to match the other automatic upload screens.
@github-project-automation github-project-automation Bot moved this to Qualification in OpenCloud Team Board Nov 23, 2026
@wernrab wernrab moved this from Qualification to Needs Review in OpenCloud Team Board Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Needs Review

Development

Successfully merging this pull request may close these issues.

1 participant