Can't view jpg file? Download instead

Hi, idk where is the cause, i can view files(jpg,png,mp4,txt,md) by build nextcloud via docker, but this time i build it from nextcloud-30.0.2.tar.bz2, now fter clicking on the file, it can only be downloaded but cannot be opened.
nginx 1.24
mysql 8.0.24
php 8.2.24
redis 7.4
nextcloud 30.0.2


1 Like

View shows up for me across my test instances on that example Nextcloud intro.mp4 file), in both 30.0.2 (and before).

I’m guessing the tooltip if you hold still over the filename is Download it offers to download rather then opens the mp4 when you click on it?

The file icon in your screenshot looks wrong. More like what it would be if it was an unrecognized extension or mime type…

Is this a stock install?
Any changes to mime type mappings?
Anything odd in the browser inspector?

hi , sorry for the delay .

To clarify, not only mp4, almost all formats such as md, png, txt, etc. will be downloaded by default after clicking, rather than opening the file;

Any changes to mime type mappings?
A: Based on your response, I have conducted some checks and found that only the mimetypealiases.dist.exe file exists. I have not created or modified mimetypealiasess.json, and it has remained the default.

Anything odd in the browser inspector?
A: I didn’t find anything strange.

Hi, ВАНЛ0401

Please take a look at this topic