Auto upload folder used for photo upload despite being disabled
Nobody has claimed this yet.
- Dominant language
- Swift
- Stars
- 2.5k
- Forks
- 1k
- Avg merge
- 2d 18h
- Merged PRs (30d)
- 13
Description
Steps to reproduce
- Navigate to some folder, e.g.
/MyTrip - Click on + and then on Upload photos or videos
- Select some photos
- Note that Use the "Auto upload" folder as destination is disabled.
- Click on the toggle to enable Use the "Auto upload" folder as destination
- Note that Use subfolders is disabled.
- Click on the toggle to enable Use subfolders
- Click on the toggle to disable Use the "Auto upload" folder as destination again
- Note that now Use the "Auto upload" folder as destination is disabled. Use subfolders is not visible anymore, but in the background the toggle is enabled.
- Click Save
Expected behaviour
The files should be uploaded to /MyTrip.
Actual behaviour
The files are being uploaded to /Photos/2024/01.
In my case this folders doesn't exist, so the upload fails with "404: The requested resource could not be found".
Screenshots
n/a
Logs
n/a
Reasoning or why should it be changed/implemented?
It's a bug. In the UI I disabled Use the "Auto upload" folder as destination, so it should not be uploaded there.
These steps are not that unlikely. A user exploring the UI, exploring and clicking the toggles, can get into this state. At least that's how I ran into it.
Environment data
iOS version: iPadOS 17.3
Nextcloud iOS app version: 4.9.6.1
Server operating system: Docker
Web server: Apache (in Docker) + nginx as reverse proxy in front
Database: MariaDB
PHP version: 8.2.15
Nextcloud version: 28.0.1
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
Reproduce the upload flow in the Nextcloud iOS app using the listed toggle sequence on iPadOS 17.3. Inspect how the Auto upload destination and Use subfolders settings are retained after disabling the destination option; done means saving uploads files to the current folder, such as /MyTrip, rather than the Auto upload path.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- swift
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100