Skip to content

Google Photos -> Nextcloud: share does not upload multiple files #369

Closed

Description

@doits

Actual behaviour

When I select multiple files to upload it only uploads some of them.

Expected behaviour

It should upload every file I want to upload.

Steps to reproduce

  1. Open Google Photos App
  2. Select 5+ pictures
  3. Click Share
  4. Select nextcloud beta app
  5. Chose a folder
  6. Click upload

Upload starts, but not all files are uploaded. Which ones and how many are uploaded seems to be random, but I only got it to upload 2 files at once in multiple tries. At "Uploads" in the app only those are visible that were really uploaded. The others are not displayed at all.

When I select one file after another to upload it uploads them all, even when they are queued because network connection is too slow.

Environment data

Android version: 7.0

Device model: Nexus 6P

Stock or customized system: Customized (Pure Nexus)

Nextcloud app version: beta-20161027, beta-20161102, beta-20161107

Nextcloud server version: 10.0.1

Logs

Nextcloud log (data/nextcloud.log)

Tried to upload 11 pictures with beta-20161107: https://gist.github.com/doits/537176b4aa4be5eaa8233105e71b0590

Activity

  1. AndyScherzinger commented on Nov 6, 2016

    @AndyScherzinger
    Member

    @doits just tried the beta on my phone (Nexus5X, 7.1.1) and I can do multi-uploads as described by you. What does the Uploads view of Nextcloud say? As for the log, there is still a bug in the beta, hope this is fixed with beta-20161105.
    Other than that you should find the log on your phone Android\data\com.nextcloud.client\files\nextcloud\log

  2. added
    needs infoWaiting for info from user(s). Issues with this label will auto-stale.
    on Nov 6, 2016
  3. doits commented on Nov 7, 2016

    @doits
    Author

    Here's the log I've taken while trying to upload multiple pictures to nextcloud, using beta-20161107.

    It uploaded just one file, but in Photos I selected 11. The uploaded picture is neither the first or the last one of my selection, it is one in the middle.

    The upload view only has the picture that was uploaded, others are missing.

  4. AndyScherzinger commented on Nov 7, 2016

    @AndyScherzinger
    Member

    Hmm, unfortunately the log "stops" before it would get interesting

    2016/11/07 15:45:02
    ReceiveExternalFilesActivity : Uploading file to dir /
    
    2016/11/07 15:45:02
    FileActivity : show loading dialog
    

    What happens if you upload 1 or 2 files?

  5. doits commented on Nov 7, 2016

    @doits
    Author

    @AndyScherzinger I think the lines you quoted are from my next test; the file that got uploaded from Photos is "IMG_20161105_145121.jpg", and the start is here I think:

    2016/11/07 15:43:39
    ReceiveExternalFilesActivity : onCreate(Bundle) starting
    
  6. doits commented on Nov 7, 2016

    @doits
    Author

    Here's a try where I try to upload 2 files (now to the root directory), and it fails completely (does not upload at all):

    https://gist.github.com/doits/27491e7caea9985983d2d537d9c08569

    Only one of the two files is displayed as "Failed" in "Uploads" view, the other one is not displayed at all.

  7. AndyScherzinger commented on Nov 7, 2016

    @AndyScherzinger
    Member

    @doits can you check the app's permission in Androids (app) settings:

    CopyAndUploadContentUrisTask : Not enough permissions to read source file content://com.google.android.apps.photos.contentprovider/-1/1/content%3A%2F%2Fmedia%2Fexternal%2Ffile%2F6118/REQUIRE_ORIGINAL/NONE/1619937482 Exception : [Ljava.lang.StackTraceElement;@a243d4c
    
  8. doits commented on Nov 7, 2016

    @doits
    Author

    Here are all the permissions:

    screenshot_20161107-163822
    screenshot_20161107-163832
    screenshot_20161107-163837

  9. zbraniecki commented on Dec 18, 2016

    @zbraniecki

    I tried to upload (from Photos app, click "share") 154 photos today (manually, not auto-upload) and it uploaded ~10, then stopped. From that moment, when I try to upload any of those photos (even one) it doesn't react at all.

    I tried restarting the phone, but that help.

    (NextCloud Android 1.4.0, NextCloud 10 hosted on OwnCube)

  10. zbraniecki commented on Dec 18, 2016

    @zbraniecki

    Uploading the same photos from NextCloud app seems to work, so it's just the Photos->NextCloud upload that failed.

  11. eleith commented on Jan 15, 2017

    @eleith
    Member

    i can confirm that when it comes to multiple file uploads nextcloud -> photos upload always works and that photos -> nextcloud will stop after uploading just a handful. there are no UI errors given, it fails silently.

  12. tobiasKaminsky commented on Jun 30, 2017

    @tobiasKaminsky
    Member

    Strongly related to #1066 but also no idea what is wrong.

    @ALL is your device idle and turns off screen? Maybe it is related to the new doze mode which kills active jobs silently if the device is idle?

  13. changed the title [-]Upload does not upload multiple files[/-] [+]Google Photos -> Nextcloud: upload does not upload multiple files[/+] on Jun 30, 2017
  14. changed the title [-]Google Photos -> Nextcloud: upload does not upload multiple files[/-] [+]Google Photos -> Nextcloud: share does not upload multiple files[/+] on Jun 30, 2017
  15. 20 remaining items

  16. MatthiasLohr commented on Oct 8, 2019

    @MatthiasLohr

    @ezaquarii, do you mean downloading from Google Drive? Here filenames are changed in the resulting ZIP archive: 003-Testfile.txt, 003-Testfile(1).txt, 003-Testfile(2).txt... In Google Drive they are still displayed with the same name:
    image

  17. stale commented on Nov 5, 2019

    @stale

    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!

  18. MatthiasLohr commented on Nov 5, 2019

    @MatthiasLohr

    @AndyScherzinger, any progress?

  19. stale commented on Dec 3, 2019

    @stale

    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!

  20. AndyScherzinger commented on Dec 12, 2019

    @AndyScherzinger
    Member

    @AndyScherzinger, any progress?

    @MatthiasLohr none yet since I can't reproduce this issue (yet)

  21. MatthiasLohr commented on Dec 12, 2019

    @MatthiasLohr

    Strange. Really strange.

    Since we're living somehow close... maybe we'll get it managed to meet personally and you can use my device for testing. Maybe that way we get closer to the cause of that...

  22. AndyScherzinger commented on Dec 12, 2019

    @AndyScherzinger
    Member

    Since we're living somehow close... maybe we'll get it managed to meet personally

    That is rather tricky these days since I am mostly blocked by private live. I did test #369 (comment) a while a go (at least I think). Is there any other way to test this, like what I can see in the screenshot?

  23. stale commented on Jan 9, 2020

    @stale

    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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugfeature: app-to-app sharingAndroid intent/share-sheet integration for importing from or exporting to other apps.needs infoWaiting for info from user(s). Issues with this label will auto-stale.stale

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions