Files have been adding by terminal not displaying

I have been adding files to this path in the container via the terminal: /var/www/html/data/admin/files/foo and through the “upload file” feature of http://127.0.0.1:8080/apps/files/?dir=/foo&fileid=110.

However, files that have been added via the terminal are not displaying, only those added manually are showing up.

I attempted to rectify this issue using the following command:
sudo chown -R www-data:www-data /var/www/html/data/admin/files/foo

However, this was unsuccessful.

The Nextcloud database does not know it. You must execute:
sudo -u www-data php /path/to/nextcloud/occ files:scan --all
documentation

If you use Nextcloud functions or WebDAV you do not need the command. Normally Web GUI or Nextcloud client is used.

1 Like

oh
you made my day
thank you

1 Like