Google Photos -> Nextcloud: share does not upload multiple files
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
- Open Google Photos App
- Select 5+ pictures
- Click Share
- Select nextcloud beta app
- Chose a folder
- 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
How do you create them within the Google Photos app? I just had collages and animations and they work fine for me.
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.
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 @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?
Let's have a chat to confirm if we want to close it for good.
I couldn't reproduce this yet :/
@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:

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!
@AndyScherzinger, any progress?
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!
@AndyScherzinger, any progress?
@MatthiasLohr none yet since I can't reproduce this issue (yet)
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...
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?
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!