Position file in nexcloud data folder : /var/www/nextcloud/data/NOMEUTENTE/files/
sudo chown -R www-data:www-data /var/www/nextcloud/data/NOMEUTENTE/files/cartella/file.zip
from the root of the web site of nexcloud
sudo -u www-data php occ files:scan –path=”NOMEUTENTE/files/cartella”