nextcloud / nextcloud/ios

Auto upload folder used for photo upload despite being disabled

Open
#2,767 1 comment 0 reactions 0 assignees View on GitHub

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
  1. Navigate to some folder, e.g. /MyTrip
  2. Click on + and then on Upload photos or videos
  3. Select some photos
  4. Note that Use the "Auto upload" folder as destination is disabled.
  5. Click on the toggle to enable Use the "Auto upload" folder as destination
  6. Note that Use subfolders is disabled.
  7. Click on the toggle to enable Use subfolders
  8. Click on the toggle to disable Use the "Auto upload" folder as destination again
  9. 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.
  10. 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

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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.