android icon indicating copy to clipboard operation
android copied to clipboard

Not uploading many files

Open memen45 opened this issue 8 years ago • 9 comments

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

  1. Choose "upload" in a folder in the app
  2. Select the files to upload - using select all (tested on around 2400 jpg files at the same time)
  3. 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

memen45 avatar Feb 11 '18 23:02 memen45

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? ;)

xXSTrikeXx avatar Feb 12 '18 11:02 xXSTrikeXx

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.

memen45 avatar Feb 12 '18 11:02 memen45

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?

tobiasKaminsky avatar Feb 14 '18 13:02 tobiasKaminsky

I thought I changed this to use app-wide data singleton which fixed this ages ago? Where do we send filepaths in an intent?

mario avatar Feb 14 '18 13:02 mario

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

tobiasKaminsky avatar Feb 14 '18 14:02 tobiasKaminsky

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

PakhomGolynga avatar Feb 21 '18 11:02 PakhomGolynga

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 avatar Feb 21 '18 13:02 tobiasKaminsky

@tobiasKaminsky , I found a similar problem with my issue #369.

PakhomGolynga avatar Feb 21 '18 14:02 PakhomGolynga

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!

stale[bot] avatar May 10 '19 04:05 stale[bot]