Preview Issue in Nextcloud

Hello,

I am experiencing an issue with file previews in Nextcloud. When I try to preview PDF or video files, instead of displaying the preview, the file gets downloaded every time.

In the configuration file /usr/share/nginx/nextcloud/config/config.php, the 'enable_previews' option is set to true. However, the previews still do not work.

Has anyone encountered this issue or has suggestions on how to resolve it?

Thank you so much for your help!

version: 29.0.2.2
Ubuntu 22.04.3 LTS
nginx version: nginx/1.18.0 (Ubuntu)
PHP 8.1.2-1ubuntu2.18 (cli) (built: Jun 14 2024 15:52:55) (NTS)

Is this the first time you’ve seen this error? = Yes
When did this problem seem to first start? = Several months ago
Installation method = Classic installation, not Docker
Are you using Cloudflare, mod_security, or similar? = No

Hi @karim_dnstech2023, welcome to Nextcloud community :handshake:

Unfortunately a lot of information to help you is missing as you ignored the required support template. Please edit into your post and add as many information as possible. This will give us the technical info and logs needed to help you!

Hi,

Thank you for the welcome!

Apologies for not including all the required information earlier. I’ve updated my post with the necessary details, including configuration settings, environment info, and logs. I hope this will help to provide the technical context needed to resolve the issue.

Please let me know if you need anything else.

Thanks again for your support!

Best regards,