Feature: Add Subfolder Strategy for Automatic Uploads #56
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.
Feature: Add Subfolder Strategy for Automatic Uploads
Based on #46
What does this PR do?
This PR introduces a new feature that allows users to automatically organize their camera uploads into subfolders based on the date the picture or video was taken. Users can choose to create subfolders by:
/2025/)/2025/11/)/2025/11/09/)This helps users keep their cloud storage tidy and makes it easier to browse through photos from specific dates.
How is this implemented?
UseSubfoldersBehaviourEnum:FolderBackUpConfiguration.ktto represent the different subfolder options (NONE,YEAR,YEAR_MONTH,YEAR_MONTH_DAY).AutomaticUploadsWorker:buildUploadPathto construct the remote path dynamically based on the selectedUseSubfoldersBehaviourand the file's last modified date.FolderBackUpEntityand the corresponding database migration (MIGRATION_43_44) were updated to include the newuseSubfoldersBehaviourfield.How to test this?
Settings>Automatic Uploadsfor either pictures or videos.Screenshots