Hi Peter...
Yes that's what exactly try to do
I create the /filestroe directory into /media/filestore in Ubuntu 20.04 system and do a Chown -R www-data:www-data /media/filestore before mounting anything there.
I did the same as /media/ingest to use this folder as a Staticsync folder.
A list of the folders looks like that
drwxr-xr-x 4 root root 4096 Sep 16 12:57 ./
drwxr-xr-x 21 root root 4096 Aug 12 11:31 ../
drwxrwxrwx 2 www-data www-data 0 Sep 16 2021 filestore/
drwxrwxrwx 2 www-data www-data 0 Sep 16 2021 ingesta/
The lines i use to mount the shared storage in the fstab are
//
192.168.8.244/filestore /media/filestore cifs username=user,password=password,uid=33,gid=33,iocharset=utf8,file_mode=0777,dir_mode=0777,sec=ntlmssp 0 0
//
192.168.8.244/ingesta /media/ingesta cifs username=user,password=password,uid=33,gid=33,iocharset=utf8,file_mode=0777,dir_mode=0777,sec=ntlmssp 0 0
And finally i did a symbolic link to the web folder
ln -s /media/filestore /var/www/html/rs/filestore
But when i point the filestore to the NAS mounted shared i got the preview like this
The right one it was ingested with the filestore pointing to /storage/filestore that are local storage in the linux server
Apparently the permission of both folders are the same
root@archivo:/# ll /storage/filestore/
total 28
drwxrwxrwx 7 www-data www-data 4096 Sep 10 18:09 ./
drwxr-xr-x 4 root root 4096 Sep 10 18:02 ../
drwxrwxrwx 2 www-data www-data 4096 Sep 10 18:02 1_ad66cb4dae65ee5/
drwxrwxrwx 2 www-data www-data 4096 Sep 10 18:05 2_0fdce9c773106bb/
drwxrwxrwx 2 www-data www-data 4096 Sep 10 18:09 3_9ed2be35e58a2d4/
drwxrwxrwx 4 www-data www-data 4096 Sep 16 13:20 system/
drwxrwxrwx 4 www-data www-data 4096 Sep 10 18:02 tmp/
root@archivo:/# ll /media/filestore/
total 4
drwxrwxrwx 2 www-data www-data 0 Sep 16 2021 ./
drwxr-xr-x 4 root root 4096 Sep 16 12:57 ../
drwxrwxrwx 2 www-data www-data 0 Sep 16 2021 3_9ed2be35e58a2d4/
drwxrwxrwx 2 www-data www-data 0 Sep 16 2021 4_b51910240dd8b26/
drwxrwxrwx 2 www-data www-data 0 Sep 16 2021 system/
drwxrwxrwx 2 www-data www-data 0 Sep 16 2021 tmp/