nextcloud / android

📱 Nextcloud Android app
https://play.google.com/store/apps/details?id=com.nextcloud.client
GNU General Public License v2.0
4.27k stars 1.77k forks source link

Auto-upload working for photos, not videos #12347

Closed locksec closed 7 months ago

locksec commented 10 months ago

⚠️ Before posting ⚠️

Steps to reproduce

  1. Taking a photo triggers an auto-upload instantly
  2. Recording a video is not triggering auto-upload of the video
  3. Tried using the Google Camera which uses a prefix PXL_(E.g. PXL_20240108001526696.mp4) and the stock camera which has a VID prefix. Doesn't make any difference
  4. Disabled "Pause app activity if unused"
  5. Tried disabling Battery Manager

Unsure if this is only happening on GrapheneOS, or this specific version of Android.

Expected behaviour

Videos should upload

Actual behaviour

No videos are uploaded

Android version

14

Device brand and model

Pixel 8 Pro

Stock or custom OS?

Stock

Nextcloud android app version

3.27.0

Nextcloud server version

27.1.5

Using a reverse proxy?

I don't know

Android logs

No response

Server error logs

No response

Additional information

Running latest version of GrapheneOS

joshtrichards commented 10 months ago

Do you have two auto-upload profiles configured - one for images and another for videos - or just one?

To the right the cloud icon indicates which ones are active while the icon to the far left indicates the media type.

github-actions[bot] commented 9 months ago

This bug report 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!

neoriae commented 8 months ago

Hello,

Do you have two auto-upload profiles configured - one for images and another for videos - or just one?

I guess he only had one profile configured, but the reason I'm commenting here is that I think it's very counter-intuitive to have to create two profiles.

I think it would be better to add a checkbox "Also upload videos" (or "Include videos") in the configuration of a profile, instead of having to create two. I've been backing up my phone on Nextcloud for 2 years now, and I'm only just discovering that the few videos I've shot have never been uploaded!

Thanks for reading, and have a nice day!

joshtrichards commented 8 months ago

@neoriae Sounds like a reasonable idea. Would you create a dedicated issue containing your enhancement idea so it doesn't get lost in this one?

github-actions[bot] commented 7 months ago

This bug report 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!

blkhawk commented 6 months ago

While it is likely that GP had just not added the folder for video files I had something similar happen to me on a recently installed grapheneos and thats why I thought I mention it for the record. Basically the Nextcloud app stopped uploading my pictures and videos eben tho I have a similar permissive setup as GP.

I noticed that in the Auto Upload configuration folders were offered that I had already deleted with thumbnails of images I had also already deleted. Force stopping the Nextcloud app made those go away but new pictures were still not uploaded but strangely one of the pictures showed up in the autoupload view but again was not synced. I have 3 camera apps installed on the phone and i made pictures with two of them as a test.

I think what happens is this: the nextcloud app cannot properly deal with multiple apps if they all point to the same directory for upload. This is a bug I think probably with how Android deals with file access permissions. A workaround seems to be to just use different folders for each app.

Why does this happen in grapheneos? Frankly because the Camera app is a bit barebones and that prompts people to install OpenCamera and/or Pixel Camera. My guess its not something tested.