/kc/ - Krautchan Beschwerdestelle

Reportierungen, Beschwerden und Verbesserungsvorschläge: Hier hinein.

Eintragsmodus: Antworten [Zurück] [Gehe nach unten]

Betreff:
Säge:
Kommentar:
Zeichnung: x Zeichenfläche
Dateien:
Passwort: (Kommentarlöschung)
  • Erlaubte Dateitypen: GIF, JPG, PNG, NetzM, OGG, ZIP und mehr
  • Maximale Anzahl von Dateien pro Post: 4
  • Maximale Dateigröße pro Post: 100.00 MB
  • Lies die Regeln bevor du postest.

ch Bernd 2025-10-11 13:15:27 6ea11d Nr. 799
I know that this is how 4chan got hacked, but PDF previews would be really nice. Also, the last time I tried uploading a cbz, it still didn't work. If/when it does, could you take the first image inside as a preview? It's just a renamed zip with image files inside.
>>799 Previews of PDFs are really tricky. You have to parse it with ghostscript and this is very likeable to have severe security implications. Just today there where fixed several ghostscript security issues. So I'm sorry but I don't think a PDF preview is as far of now a reliable feature ti implement. About the CBZ issue. As for the supported file types it should work. We have "application/zip,application/x-zip-compressed,application/rar,application/x-rar,application/vnd.rar,application/vnd.comicbook+zip,application/vnd.comicbook-rar" among the allowed MIME-Types. If you could provide the CBZ which is not working for further analysing. Perhaps it generates another MIME-Type. About taking the first image as preview we have to look if lynxchan would support such a feature. It's complicated in a similar way than the first issue. Because it has to extract the ZIP in a secure way (Think of the ZIP-Bomb) to get the first image and thumbnail it.
Test if upload works.
>>801 Derp it works lol. Anyway, the preview just needs unzip.
Is it maybe a problem on /a/? Or on iPhone?
>>863 Didn't work on /kc/ either.
>>865 >>863 Have to take a closer look on this. Is it the same CBZ you already posted here? If not could you please try to post it from your PC or some external hoster to make tests with that file?
>>866 I couldn't upload it from a PC either and ran into the same error message. Here's something to debug:
$ file --mime-type -b Frieren\ 147.cbz application/zip $ unzip -t Frieren\ 147.cbz Archive: Frieren 147.cbz testing: 01.jpg OK testing: 02.jpg OK testing: 03.png OK testing: 04.png OK testing: 05.png OK testing: 06.png OK testing: 07.png OK testing: 08.png OK testing: 09.png OK testing: 10.png OK testing: 11.png OK testing: 12.png OK testing: 13.png OK testing: 14.png OK testing: 15.png OK testing: 16.png OK testing: 17.png OK testing: 18.jpg OK testing: 19.jpg OK No errors detected in compressed data of Frieren 147.cbz.
The file I successfully uploaded also shows up as application/zip. I successfully uploaded chapter 143 from a different PC (running Fedora). Right now, I'm trying to upload from a Mac. Firefox each time.
>>868 Also, can CSS-Bernd add font-family: monospace to the codeblocks pls?