Not uploading many files
Actual behaviour
Nothing (not even error message in the app, nor errors in the server logs)
Expected behaviour
Upload the selected files
Steps to reproduce
- Choose "upload" in a folder in the app
- Select the files to upload - using select all (tested on around 2400 jpg files at the same time)
- Choose "upload" to start upload
Environment data
Android version: Android 6.0
Device model: H60-L04
Stock or customized system: EMUI 4
Nextcloud app version: 3.0.0 (release from play store)
Nextcloud server version: 12.0.5
Huawei got a "ignore optimization list", which apps shouldn't be optimized for a good akku experience. So mabye the system had closed the app and caused a break while uploading. Huawei is something special. :D Could you please check your app settings? ;)
I am aware of this setting, however I never navigate away from the app, nor close my phone. If I select only one file, it uploads correctly including immediate notifications as 'uploading' and 'uploaded' as normal. However, with this many files, there isn't a single notification or anything. Just seems to be ignored.
These many files just break the upload process: to upload a file we pass the filepath(s) via intent to our upload system. This fails if there are too many filepaths. I see two possible "fixes":
- limit uploading to e.g. 500 files so that it will always work
- store the filepaths temporary in the database and pass only a reference
I would rather use second approach?
I thought I changed this to use app-wide data singleton which fixed this ages ago? Where do we send filepaths in an intent?
Here we put the paths in an intent: https://github.com/nextcloud/android/blob/60fae3c50247c1d3f9fad9b9b27d596c1f31d539/src/main/java/com/owncloud/android/ui/activity/UploadFilesActivity.java#L514-L531
I have same problem. App upload only 7 files and stopping upload process.
Android version: Android 6.0.1 Device model: Xiaomi redmi 4 pro Stock or customized system: MIUI Global 9.2 (stock) Nextcloud app version: 3.0.1 Nextcloud server version: 13
This is then a different bug @PakhomGolynga. The one we are talking about here is, that after selecting many many files and clicking upload, nothing happens.
Please open up a new issue for your bug.
@tobiasKaminsky , I found a similar problem with my issue #369.
This request did not receive an update in the last 4 weeks. Please take a look again and update the issue with new details, otherwise the issue will be automatically closed in 2 weeks. Thank you!