Skip to content

Nextcloud 21.0.2 - Kann kein PDF anzeigen!?

Nextcloud
  • Meine Version: Nextcloud 21.0.2

    Ich konnte heute kein PDF File öffnen, kam nur eine Fehlermeldung. Ok, kurze Suche im Netz.

    1. 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 🙂