Rescan files in my data folder

hi!!! there are any method to rescan files un my data folder?
i migrate nextcloud to another server. i copy db folder and copy data folder.
but there are any photos that not open correctly.
there are any method to rescan folder in my old data folder? to reindex all items in database?
thanks.

occ files:scan --user

I had done it. But some photos appear like this

Sergio Feria Moreno

Seems not to be a index vor scan issue. You use it with a mobile client? Can you download the file and open it with the device? Could the file be corrupt?