android icon indicating copy to clipboard operation
android copied to clipboard

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

Open doits opened this issue 10 years ago • 34 comments

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

doits avatar Nov 02 '16 21:11 doits

How do you create them within the Google Photos app? I just had collages and animations and they work fine for me.

AndyScherzinger avatar Oct 02 '19 11:10 AndyScherzinger

I can't create them intentionally. I just bought a new handy, took some photos. The Google Photos assistant applied effects on some of my photos. Result: 3x EFFECTS.jpg, but also some other files $ORIGINAL_FILE_NAME-EFFECTS.jpg (where $ORIGINAL_FILE_NAME was the timestamp of taking the photos, this is how photos usually are named). So, no idea how to reproduce this intentionally.

MatthiasLohr avatar Oct 02 '19 11:10 MatthiasLohr

What you can do: Create files with the same name on Google Drive (easiest way: Download 3 different files, e.g. a.txt, b.txt, c.txt, and rename one to the name of another (e.g. c.txt -> b.txt). Now you have a.txt, b.txt, b.txt. Open Google Drive and share these 3 files to Nextcloud. Nextcloud will silently skip on of the b.txt files. In Nextcloud Upload status, you also see only 2 uploaded files.

This approach is uploading all non-duplicate files. I couldn't reproduce the behaviour of sharing from Google Photos yet, where even non-duplicates are skipped.

MatthiasLohr avatar Oct 02 '19 11:10 MatthiasLohr

@MatthiasLohr @AndyScherzinger From description (I don't use Google services) it looks like Google is having different file system concept then rest of the planet and / or they have separated file name from displayable name.

@MatthiasLohr can you download those files on your computer? What happens then?

ezaquarii avatar Oct 02 '19 20:10 ezaquarii

Let's have a chat to confirm if we want to close it for good.

ezaquarii avatar Oct 02 '19 20:10 ezaquarii

I couldn't reproduce this yet :/

AndyScherzinger avatar Oct 07 '19 18:10 AndyScherzinger

@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

MatthiasLohr avatar Oct 08 '19 19:10 MatthiasLohr

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 Nov 05 '19 19:11 stale[bot]

@AndyScherzinger, any progress?

MatthiasLohr avatar Nov 05 '19 19:11 MatthiasLohr

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 Dec 03 '19 19:12 stale[bot]

@AndyScherzinger, any progress?

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

AndyScherzinger avatar Dec 12 '19 07:12 AndyScherzinger

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...

MatthiasLohr avatar Dec 12 '19 07:12 MatthiasLohr

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 https://github.com/nextcloud/android/issues/369#issuecomment-537457910 a while a go (at least I think). Is there any other way to test this, like what I can see in the screenshot?

AndyScherzinger avatar Dec 12 '19 08:12 AndyScherzinger

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 Jan 09 '20 09:01 stale[bot]