nextcloud / nextcloud/ios

Override of pictures after auto-upload due to wrong name convention/numbering. Causes data loss.

Open
#3,850 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Swift
Stars
2.5k
Forks
1k
Avg merge
2d 18h
Merged PRs (30d)
13

Description

How to use GitHub
  • Please use the 👍 reaction to show that you are affected by the same issue.
  • Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
  • Subscribe to receive notifications on status change and new comments.

Steps to reproduce
  1. Getting 2 or more picture in Threema at the same time
  2. Threema is enabled to saves the picture into the iOS Photos section
  3. Nextcloud autoupload is activates and tries to upload the picture to the next cloud server

This issue may relate to this one: https://github.com/nextcloud/ios/issues/2531

Expected behaviour

The name of the picture should get a unique number to avoid the override of the picture.

Actual behaviour

The name looks like this "2025-11-01 07-24-46 ema_.jpeg " without numbering. This results that the 1st file will be uploaded and the second file gets locked "WebDAV Locked: Trying to access locked resource". After retry the 1st upload is not more blocked and the 1st file will be overridden by the 2nd.

Image
Logs
If applicable, you can post the iOS app or server logs (removing any sensitive information).
Reasoning or why should it be changed/implemented?

User expects that all photos are stored on the nextcloud server and deletes the picture on the phone with the "auto delete" option after successful upload. Finally it result in data loss.

Environment data

iOS version: 18.7.1

Nextcloud iOS app version: 7.1.7.2

Server operating system: Docker,Linux

Web server: Apache, nginx

Database:: mysql

PHP version:

Nextcloud version: 32.0.0

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue with two or more simultaneous photos saved from Threema into iOS Photos, then trace the Nextcloud iOS auto-upload naming and retry behavior. The change is done when concurrently uploaded photos receive distinct names and no upload can overwrite another; verify this with the reported WebDAV locking and retry scenario.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.