With mobile it is difficult. Seems the nextcloud app is THE solution.
There are possibilties, but more complex. You could sync with syncthing. But i never tried this Solution
Sync files from Android to your Nextcloud server using Syncthing.
Files go into the Nextcloud folder, and a quick scan command makes them show up in Nextcloud.
On your Android device:
- Syncthing app (from F-Droid or Play Store)
On your server:
- Syncthing installed and running
- SSH access
- You know the Nextcloud data folder (e.g. /var/www/nextcloud/data/user/files/Syncthing/)