Noch als Ergänzung, der Server läuft mit Debian 12
# uname -a Linux webserver1-4gb-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.90-1 (2024-05-03) x86_64 GNU/LinuxNextcloud 21.0.2 - Kann kein PDF anzeigen!?
-
Meine Version: Nextcloud 21.0.2
Ich konnte heute kein PDF File öffnen, kam nur eine Fehlermeldung. Ok, kurze Suche im Netz.
Can't open PDF when filename or folder name contains a space or special character (' ', é, ...) · Issue #381 · nextcloud/files_pdfviewer
🩹 Temporary fix (will be shipped in the next Nextcloud minor release only) ℹ️ This is a temporary fix you can apply manually, from PR #384. To do this: 1) Replace the file at apps/files_pdfviewer/js/files_pdfviewer-main.js on your instan...
GitHub (github.com)
- Replace the file at apps/files_pdfviewer/js/files_pdfviewer-main.js on your instance with this file from that PR
cd ........./nextcloud/apps/files_pdfviewer/js mv files_pdfviewer-main.js files_pdfviewer-main.js_BAK
Danach
wget https://raw.githubusercontent.com/nextcloud/files_pdfviewer/6d81ffbb65c3758bece144e0aff07b4a0ad20eef/js/files_pdfviewer-main.js --2021-07-01 21:40:15-- https://raw.githubusercontent.com/nextcloud/files_pdfviewer/6d81ffbb65c3758bece144e0aff07b4a0ad20eef/js/files_pdfviewer-main.js Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 185.199.111.133, 185.199.108.133, 185.199.109.133, ... Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|185.199.111.133|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 23369 (23K) [text/plain] Saving to: ‘files_pdfviewer-main.js’ files_pdfviewer-main.js 100%[============================================>] 22.82K --.-KB/s in 0s 2021-07-01 21:40:15 (56.1 MB/s) - ‘files_pdfviewer-main.js’ saved [23369/23369]
Benutzerrechte noch anpassen
chown www-data:www-data files_pdfviewer-main.js
Ok, geht wieder