Bug in the iOS Nextcloud App 5.2.4.2: Error uploading files when uploading large size file
Hello, teams,
I am trying to upload large video files from my iOS album and encountered "chunk_enough_memory" = "It seems there is not enough space to send the file" error. After checking the source code I realize that the file upload is limited by the settings below in NextcloudKit.swift:
if **freeDisk < fileNameLocalSize * 4** {
// It seems there is not enough space to send the file
let error = NKError(errorCode: NKError.chunkNoEnoughMemory, errorDescription: "_chunk_enough_memory_")
return completion(account, nil, nil, nil, error)
}
I wonder why the fold is set to 4, which is very troubling as I had to leave enough 4 times free space locally, which is not possible.
If the fold number is irrelevant I hope it can be removed or minimized.
Steps to reproduce
- download the iOS nextcloud 5.2.4.2 app
- configure the server to enable large file upload.
- upload a huge video file from iOS (10GB)
Expected behavior
huge files should be uploaded seamlessly.
Actual behavior
The app would prompt a "not enough space" message on the main page, yet no error message shown in the app log.
Meanwhile, the same amount of space will still be occupied in the cache space.
(shown in the the iOS Nextcloud app - ADVANCED - DELETE FILES TO FREE UP SPACE)
Also, I have tried to disable chunk transmission using php occ config:app:set files max_chunk_size --value 0
but in the communication log it shows that it is still using chunk uploads.
Screenshots
Logs
From the communication.log:
2024-04-08 10:01:46 [INFO] PROCESS (UPLOAD) find 1 items 2024-04-08 10:01:47 [INFO] Upload file 24-01-23 22-15-51 1683.mov with Identifier 83A98BE1-20BA-4DA2-BD27-8208B308714B/L0/001 with size 1131992108 [CHUNK 100000000, E2EE false]
Reasoning or why should it be changed/implemented?
It is troublesome to set the fold number to 4 because if I want to upload a 10 GB file I will have to keep 40 GB free space in my iOS device, which is nearly impossible.
Environment data
iOS version: iOS 17.2.1
Nextcloud iOS app version: Nextcloud Hydrogen for iOS 5.2.4.2@2024
Server operating system:
Web server: Apache
Database: redis, mariaDB
PHP version: Version: 8.2.17
Nextcloud version: 28.0.4
I have this same issue
@jth134 let‘s hope that they can narrow the cache size.
Thank you for reporting this and finding it out. I'm having the exact same issue. Trying to upload a 4.6Gb file when i only have 15Gb free on my iPhone
I'm having this issue too with 2G files. I have set up PHP to max 5G in upload files and 0 (disable limit) in post, but still nothing.
Then I guess the problem still occur. 在 May 2, 2024, 1:18 AM +0800,jth134 @.***>,写道:
I have this same issue — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you modified the open/close state.Message ID: @.***>
This error is still actual!
Environment data
iOS version: 17.5.1 Nextcloud iOS app version: Nextcloud Hydrogen for iOS 5.4.1.0@2024
Server operating system: Debian Web server: Nginx Database: redis, mysql 10.11.6
PHP: Version: 8.3.9 Memory limit: 512 MB Maximum execution time: 7200 Maximum upload size: 33 GB OPcache recheck frequency: 10 Extensions: Core, date, libxml, openssl, pcre, zlib, filter, hash, json, random, Reflection, SPL, session, standard, sodium, cgi-fcgi, mysqlnd, PDO, xml, apcu, bcmath, bz2, calendar, ctype, curl, dom, mbstring, FFI, fileinfo, ftp, gd, gettext, gmp, iconv, igbinary, imagick, imap, intl, ldap, exif, mysqli, pdo_mysql, Phar, posix, readline, redis, shmop, SimpleXML, smbclient, sockets, sysvmsg, sysvsem, sysvshm, tokenizer, xmlreader, xmlwriter, xsl, zip, libsmbclient, Zend OPcache
Nextcloud version: [Nextcloud Hub 8] 29.0.3
I have the same error on 29.0.4 docker and 5.5.2
Error still persists with iOS version: 17.6.1 Nextloud iOS app version: 5.5.5.0@2024
Nextcloud version: 30.0.0
Sadly still a problem.
Experiencing this too... trying to upload a 69 GB file which I guess would require me to have 276 GB of free space on my 256 GB phone