Cannot upload or move file to folder if file with that name exists
Nobody has claimed this yet.
- Dominant language
- Swift
- Stars
- 2.5k
- Forks
- 1k
- Avg merge
- 2d 18h
- Merged PRs (30d)
- 13
Description
Expected behaviour
When I’m uploading files to a folder where a file with that name already exists one of the following should happen:
- Overwrite the existing file and keep the overwritten file in the history.(I think this was the default behavior in previous versions)
- Reject the upload with a message that tells me that the file already exists.
- Show a dialog where I can choose from different options (overwrite, cancel, rename).
Actual behaviour
I get an error message that says: “Error photo/Video not found, remove from upload”
This is in a number of ways inappropriate:
- My language is set to German but the error message is in English
- I was trying to upload a pdf file, not a video or a photo
- The message is very misleading, you wouldn’t expect that it is caused by an existing file.
When I am moving files within the app a correct error message (file exists) is shown which is fine. However I would still prefer behavior 1. or 3.
Steps to reproduce
Upload the same file twice to the same folder.
iOS version
11.4.1
App version
2.22.2.2
Server configuration
Operating system: Ubuntu
Web server: Apache2
Database: MySQL
PHP version: 7.2.10
Nextcloud version: (see Nextcloud admin page)13.0.6
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 by uploading the same PDF twice to the same folder on the reported app and iOS versions, then compare the upload failure with the existing move-file error. The issue names no files or tests, so trace the iOS upload path first. Done means the duplicate-file case has an agreed behavior and produces an accurate, localized result rather than the misleading photo/video message.
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