Uploaded Pictures are deleted on Smartphon

We have 2 nearly identical smartphones, 1 x NOKIA X10 and 1X NOKIA X20, the same Android version, both the same Nextcloud App version with the sam 1 to 1 compared settings.Here the automatic upload of pictures and videos, the upload works as expected, but on phone holds the pictures localy, thats what we will, but on the the other the pictures are deleted after upload, what we do not want.
Need help, thanks