Override of pictures after auto-upload due to wrong name convention/numbering. Causes data loss.
Nobody has claimed this yet.
- 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
- Getting 2 or more picture in Threema at the same time
- Threema is enabled to saves the picture into the iOS Photos section
- 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.
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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