IacobIonut01 / Gallery

Light-weight Media Gallery app for Android made with Jetpack Compose
Apache License 2.0
1.28k stars 65 forks source link

[BUG] Move fails with large files #253

Closed jerichoi224 closed 11 months ago

jerichoi224 commented 11 months ago

[Delete before submission] Please use and reproduce the bug on the latest build from Github Actions (Artifacts)

Describe the bug Error occurs when trying to move long videos or large high res picture. A toast saying "An error occured" appears

Expected behavior Files get moved

Smartphone (please complete the following information):

IacobIonut01 commented 11 months ago

Can you send me an example size of a file that fails? I'll try to replicate that and come back

jerichoi224 commented 11 months ago

Oh, did some extra testing, and found out... it wasn't with the file size, it was with the destination folder. I seem to not be able to move files into directories that aren't within the DCIM folder.

For example, I've been trying to move some files I downloaded into /Downloads/Family_Pictures folder but have been failling. I moved the folder to /DCIM/Family_Pictures, and now I can move the files fine.

There seems to be an error when moving files into Folders outside the DCIM such as directories in the root directory or Download folders...

IacobIonut01 commented 11 months ago

I'm not sure you're on the latest build or I've missed something while doing some path checking but without any extra permissions (and I'm talking about the FULL STORAGE ACCESS), Android no longer allows moving media through the official APIs (MediaStore) outside of DCIM/ or Pictures/ folders.

There's already an open issue regarding this and I will consider adding this permission request (as optional) for allowing users to copy/move media to any album (or create new album)

jerichoi224 commented 11 months ago

Android no longer allows moving media through the official APIs (MediaStore) outside of DCIM/ or Pictures/ folders.

Oh, I didn't realize this was an issue on Android. Yeah I didn't realize my albums were located outside so initially thought it was a bug, but I guess its just due to android restricting permissions. I think I'll just have to be careful with where I create albums, and this issue can be ignored..

Thanks!