nextcloud / ios

📱 Nextcloud iOS App
https://itunes.apple.com/us/app/nextcloud/id1125420102
GNU General Public License v3.0
1.94k stars 875 forks source link

Autoupload doesn't upload videos that have been trimmed #2507

Open Zinurist opened 1 year ago

Zinurist commented 1 year ago

Steps to reproduce

  1. Make a video
  2. Trim the video and select "Save as new clip"
  3. Nextcloud only uploads the new clip, not the original video

Expected behaviour

All my videos are uploaded.

Actual behaviour

Only videos that haven't been trimmed are uploaded.

Reasoning or why should it be changed/implemented?

Because "Save as new clip" clearly means I want a separate video file. iOS treats it as a separate video file, so I expect both the original and the new file to be uploaded (Google photos for example does so). I might have lost videos now because of this bug.

Environment data

iOS version: 16.5.1

Nextcloud iOS app version: 4.8.3.1

Nextcloud version: 25.0.8

jth134 commented 1 year ago

I did not realize this but have tested and am able to reproduce for videos and even duplicating photos if you want to crop them. It appears the file names end up being the exact same so it only ever uploads the first file. I did a manual upload after creating a trimmed file half the size and you can see they both have the same name with different file sizes. I wonder when uploading, could the length of the video file be checked and if it is different from the existing file, add a “.1” or something so it ends up being uploaded as a separate file? This would not solve the case for duplicate photos.

IMG_7812