Nextcloud Encryption

Encryption is working when i upload files directly in nextcloud and then taking file from sftp won’t load in PC but when i upload files manually to user files directory and run occ files:scan they’re not encrypted. Do i have to manually run encryption command everytime?

sudo -u user php /path/to/occ encryption:encrypt-all

Is it possible to perform both these tasks, scan and encryption from nextcloud admin?