nextcloud / nextcloud/ios

Uploading Two Videos with the Same Filename Results in Only One Being Uploaded

Open
#2,926 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. Open the Nextcloud app.
  2. Navigate to a location.
  3. Select two different videos with the exact same file name.
Expected behaviour

I expect both videos to be uploaded, maybe with a warning and an option to "keep both files," adding a number to the file name or something similar (like when a duplicate is uploaded, a number is automatically added to the file name).

Actual behaviour

Currently, only one of the two videos is uploaded.

Reasoning or why should it be changed/implemented?

This change is necessary because the current behavior results in data loss. When two files with the same name are uploaded, it is crucial that the user has the option to keep both files without one being overwritten. This will improve usability and data security, preventing user frustration and potential loss of important information.

Environment data

iOS version: iOS 17.4.1

Nextcloud iOS app version: Nextcloud Hydrogen for iOS 5.2.7.0

Server operating system: Raspberry Pi OS (installed via Docker)

Web server: Apache

Database: MariaDB

PHP version: PHP 7.4

Nextcloud version: Nextcloud Hub 8 29.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

No files, tests, or entry points are named. Begin by reproducing the upload with two videos sharing a filename, then trace the iOS upload flow to determine where the second file is discarded; done means both videos are retained, with a warning or distinct filename as described.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios, 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.