nextcloud / nextcloud/ios

iOS Photo Roll Uploads 0-Byte Files When Device is Out Of Disk Space

Open
#1,550 4 comments 1 reaction 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

Expected behaviour

A warning or error displayed to the user to instruct the user that the device does not contain enough free space to hold the cache for the Photo Roll transfer.

Actual behaviour

The Nextcloud app uploads the Photo Roll, but because not enough free space exists, some or all of the photos are uploaded as 0-byte files. No errors or warnings are displayed, and no anomalous log entries are generated.

Steps to reproduce

Use an iOS device which is out of storage space and attempt to upload a large number of photos to the Nextcloud instance.

Reasoning or why should it be changed/implemented?

A user may be unaware that they require significant free disk space in order to initiate a Photo roll transfer. If a user is not warned and no error is displayed, they will perhaps believe that the issue exists with the forward proxy or the Nextcloud application. Several such errors appear to already have been filed in GitHub related to this - fixing this could help cut down the number of bugs / help requests.

iOS version

14.1

App version

3.3.1.1

Server configuration

Nextcloud as TrueNAS plugin with Nginx as an HTTPS forward proxy.

Operating system:
TrueNAS 12

Web server:
Nginx

Database:
default

PHP version:
default

Nextcloud version: (see Nextcloud admin page)
21.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

Start by reproducing the Photo Roll transfer on an iOS 14.1 device with insufficient storage, using app version 3.3.1.1, and trace how the transfer cache and upload errors are handled. Done means the user receives a clear warning or error before or during transfer and photos are not uploaded as 0-byte files.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios, swift
Domain
mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.