With the File actions app files_scripts, you can solve that without an external bash script.
In addition, you can create a thumbnail at any time, but it can also be generated event-controlled via cron, as with workflow_script. Advantage with files_scripts: data such as cloud_data_path and occ_path are automatically recognized or not required.
If triggered via actions_script in the context menu, you could also adjust the values for tilt and yaw, depending on the object, which is an absolute added value in my opinion.
Con: You must learn lua script, but that is not too much of an effort
Let’s see, maybe if I feel like doing it in the next few days, then I’ll make you a small example, but I’m not promising anything, I’ve got a lot to do at the moment. But actually, everything is very well documented with the sample scripts that come with the app and the scripting API and manuals.
Is this needed to make thumbnails work in Windows file browser as well? They are removed/disappear as soon as Nextcloud syncs them to the server. I don’t need them to show up in the web Nextcloud, so I am unsure if I need this workaround or is some setting in NC set incorrectly that causes thumbnails to disappear, even from Windows side.
For some odd reason Solidowrks part files, .SLDPRT, retain their thumbnail, but every other CAD file loses it, when placed in a NC sync folder.