Skip to content

[Feature] Upload old pictures from Android #3867

Open

Description

@MMan1982

Hi,

Using the latest version of android client. Its uploading only the newly taken pictures,the old pictures remains on phone. I have more than 400 pictures on it, i.don't wanna upload one-by-one manually. Please add an option that uploads ALL from the.phone.

Activity

  1. hannesa2 commented on Jan 22, 2023

    @hannesa2
    Contributor

    This would be very useful to not loose images.
    I already did an unmerged pull request #2772 and this #2834 is the same topic.

  2. JuancaG05 commented on Jan 31, 2023

    @JuancaG05
    Contributor

    Hi @MMan1982! Thanks for opening a issue!

    The auto-upload feature is intended for that, to synchronize newly taken pictures or videos. You don't have to upload your old photos one by one, you can select all those old pics from your gallery or wherever, and share them with ownCloud to the folder you want. If I understood correctly.

    If you have any other question or comment don't hesitate to post it here!

  3. guaguasi commented on Jun 4, 2023

    @guaguasi

    I currently have a similar issue. I have 256gb of unbacked up images and videos. Literally thousands of images. How am I supposed to manually sync the files? It's incredibly cumbersome not to mention near impossible given data access/load time. I spent 5 minutes waiting for the folder to load and it never finished.

    There are a TON of people requesting a feature to automatically upload all old images/videos/data and yet there is significant push back from contributors and others. I don't understand why. A feature such as this would be an immense quality of life improvement. I spent a not insignificant amount of time setting up owncloud because I assumed that such a thing was possible, a feature that seems like a no-brainer. Only when not finding the option while using the app and doing some googling did I come to find that it was impossible.

    The company line seems to be "just do it manually" and that is shocking. Especially since this has been an issue for what appears to be over 3 years... most likely more.

  4. weiguangcui commented on Nov 16, 2023

    @weiguangcui

    I would like to add this: my photos, for whatever reason (App is closed, not working...), are not automatically uploaded (for how long?), then they are taken as old photos and not uploaded. If I don't know, these photos can be deleted without being uploaded. Even I know, new photos may come and be uploaded automatically, then I need to find which has been uploaded, which not, that is really frustrating when dealing such things.

  5. bilogic commented on Jan 5, 2026

    @bilogic

    The auto-upload feature is intended for that, to synchronize newly taken pictures or videos. You don't have to upload your old photos one by one, you can select all those old pics from your gallery or wherever, and share them with ownCloud to the folder you want. If I understood correctly.

    @JuancaG05

    If I pick a folder to auto-upload and selected remove from original folder, that is because I want it always empty to prevent my device from running out of space. If I wanted to keep the photos, I would have selected kept in original folder

    It would be more engaging if you can quote 1 use case of why someone would want to keep old photos and auto-upload only new ones.

    I propose having a new Upload behavior as:

    1. Move everything from original folder to remote
    2. Copy only new files from original folder to remote
    3. Copy everything from original folder to remote
      • Nobody will use this, waste of bandwidth
    4. Move only new files from original folder to remote
      • I cannot think of any use case, except that this is a design mistake because kept in original folder needed Last synchronization to know which files to upload, so remove from original folder also blindly follow the same approach and resulted in this behavior

    So much clearer and no ambiguity and you can use analytics to see how many users actually choose 3 and 4

  6. jesmrec commented on Jan 12, 2026

    @jesmrec
    Member

    @bilogic that sounds good. But, it's not that easy since the source folder is not static... then, if the source folder changes, everything in the new folder will be pushed as well (in case "move/copy everything" is chosen), and it could raise the number of upload conflicts (for example). On the other hand, files will not be synced but just pushed (changes in the server will not be "moved" to the client). Idea is good, we'll think about it, but, not straightforward to implement. Contributions are always welcome.

  7. bilogic commented on Jan 12, 2026

    @bilogic

    @jesmrec good case, this is how I will treat it by first answering why does the user want to change a folder?

    • I suspect majority of them will be due to change of phone
    • Another cause could be because owncloud only lets us specify 2 folders, now I have a more important one
    1. You are right in pointing out that this is a 1 way transfer Copy/Move, not 2 way Sync, very important otherwise the implementer will overengineer the solution
    2. Thus, the only possible conflict now is that, a file with the same name already exists on the server
    3. If file exists on server
      • Stop and notify: tell the user the files that were not copied/moved, user to rename on server so that auto upload can resume
      • Silently overwrite: overwrite and don't notify user
      • Silently append filename: create as a different name in the server. If copying, leave it untouched on the device
    4. To make implementation less complex, I propose for Stop and notify, owncloud will stop uploading all files, I have not read your code but I assume you track a Last synchronization somewhere to know which files are new
    5. As an example, if there are 10 new files and file 1 uploaded ok, but file 2 exists on server already, then file 3 and onwards must not be uploaded, the Last synchronization should also stop at file 2 so that owncloud can keep retrying it, basically this entire auto upload will not work again until user fixes the issue on the server, even if the 11th, 12th etc files are added on the device
  8. bilogic commented on Jan 12, 2026

    @bilogic
    1. I propose that instead of modifying the existing camera and video uploads, achieve this by adding a Watched folders
    2. Where we can specify as many watched folders as we need and mark this as experimental
    3. This will prevent anyone from complaining about camera and video uploads not working
    4. And give sufficient freedom for this to be implemented in the simplest way (without overengineering)
    5. Eventually, mark camera and video uploads for deprecation where users will have to do their own migration to Watched folders
  9. jesmrec commented on Jan 12, 2026

    @jesmrec
    Member

    I propose that instead of modifying the existing camera and video uploads, achieve this by adding a Watched folders

    that can make sense, a higher abstraction level with no filters. Just for non scoped-storage folders.

    Where we can specify as many watched folders as we need and mark this as experimental

    not as many as desired... here we'd need a limit. It is worker-based, making a system dependency. To check.

    And give sufficient freedom for this to be implemented in the simplest way (without overengineering)

    👍

    Eventually, mark camera and video uploads for deprecation where users will have to do their own migration to Watched folders

    to research. This could be version-sensible, but also feasible.

  10. bilogic commented on Feb 11, 2026

    @bilogic

    @jesmrec what do you think so far?

  11. jesmrec commented on Feb 11, 2026

    @jesmrec
    Member

    It sounds good and it would be interesting to have.

  12. bilogic commented on Feb 22, 2026

    @bilogic

    Can we make small steps toward this?

  13. jesmrec commented on Feb 24, 2026

    @jesmrec
    Member

    Can we make small steps toward this?

    we should define which these steps are because that's a very important change. Are you willing to contribute? in that case, please review the CONTRIBUTING.md file and state any question.

    I can tell you that this is not a prior issue in our roadmap, since we are now busy with other stuff.

  14. bilogic commented on Feb 25, 2026

    @bilogic

    @jesmrec I have not written in Kotlin or for Android professionally, but I'm more than willing to contribute as an architect (as you have seen above) which I would argue plays an equal if not more important role.

    Commits

    1. The safest first small step is to copy and Silently overwrite watched folders to the server
    2. Then add the move feature, which is, after copying each file, if it was a move, delete the file on the phone
    3. Then, add a flag for the Silently append filename feature on top of Silent overwrite
    4. Add another flag for Stop and notify feature
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions