v1r0x / files_3d

GNU Affero General Public License v3.0
33 stars 9 forks source link

Not previewing files #14

Open haarp opened 4 years ago

haarp commented 4 years ago

Hello,

this seems like a super useful app! I just installed and enabled 0.3.0 on a NC19.0.1 server. However, I'm not sure if I'm doing something wrong, or if it's plain not working.

I have a couple of .obj and .stl files which I want to preview. Clicking on them in the files app only offers me to download the file tho. Should I be getting a preview? If not, how do I open the preview?

Thanks a lot!

haarp commented 4 years ago

Ah, just after creating this issue I managed to make it work. Disabling and re-enabling the app worked. Maybe there's a bug preventing some sort of initialization the first time around?

flixr commented 3 years ago

I'm seeing something similar (with 0.3.3). Could it bee that the file cache is somehow not updated? Because the preview works for files that I already had in NextCloud before updating to 0.3.3, but it doesn't preview files I just added. Not even the same file that is working, just newly uploaded under a new name. It directly opens the download dialog.

MaggiWuerze commented 3 years ago

same here, toggling the app helped

v1r0x commented 3 years ago

The problem is that the file extension -> mimetype connection is made in a migration step. This is only triggered when the app is enabled/activated. If someone has a nicer way to re-run that migration (or do it in another way) I more than happy to include it :smiley:

bobbolous commented 2 years ago

Same here on a NC24.0.3 with files 3d 0.5.0 When I click on any .STL i simply donwload the file. No preview option offered. Deacticating and reactivating does not solve the issue. I also tried reinstalling from within NC webinterface. But without any luck. In the logging app I get no message related to the issue.