Repository navigation
Feature/multiple upload folders - #260
Open
Confused-Engineer wants to merge 3 commits into
Open
Confused-Engineer wants to merge 3 commits into
Confused-Engineer wants to merge 3 commits into
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.