Inserting ZIP files into articles

  • Betroffene App
    WoltLab Suite Core

    I was just playing around with the new 3.1 Core installed using the Article system. I see you can upload a ZIP archive to the MEDIA section (along with images). But when you use the editor to try and insert a ZIP file into the content, the editor MEDIA tab presumes everything you insert will be an image as MEDIA, and this is what I see when inserting a ZIP file instead as MEDIA.

    But as you can see on the front-end after you submit the article with 3 zip files inserted as media, they do work.

    2 Mal editiert, zuletzt von NicoleSophie (16. Januar 2018 um 17:40)

  • NicoleSophie 16. Januar 2018 um 17:30

    Hat den Titel des Themas von „Inserting files into articles“ zu „Inserting ZIP files into articles“ geändert.
  • All I did was this.

    1. From the admin CP under MEDIA, I uploaded a ZIP file.

    2. Then created a new article and clicked the BBCode button called MEDIA to insert the ZIP file. But when you insert the ZIP file into the editor it shows a broken image for it.

    Looking at the code inserted for it in the editor (using plain text view). I see this used.

    Code
    <img src="http://woltlabsuite.com/acp/index.php?media/1-green-angry-emoji-zip/" class="woltlabSuiteMedia" data-media-id="1" data-media-size="original">
    <p><br></p>

    But here is the ZIP showing as uploaded to the MEDIA section:

    Einmal editiert, zuletzt von NicoleSophie (19. Januar 2018 um 18:47)

  • Maybe another person can test this here. Because I have reported two things now, and with both things you have not been able to get the same error results. There is also the language menu saving thing that you've been unable to reproduce also. So another person maybe needs test doing this to rule out it's not an issue on my end only

  • Do you want access to the site as admin to test it out with both the saving menu language thing and this zip problem as well. Because I can give you admin login, it's not like I'm doing anything with the site

    As there is also this bug as well: Saving menu items without changing anything removes the text name for language variable

    Does this happen for every zip file or just a specific one?

    Yes, it did the same thing before with 3 different zip files inserted into the post

    Einmal editiert, zuletzt von NicoleSophie (19. Januar 2018 um 19:00)

  • This seems to working fine now testing after one of the staff devs pointed out that nd_pdo_mysql was not ticked in PHP extensions for PHP 7.2. Now that I ticked that extension it is inserting some code for the attachment instead of a broken image.

    So I think you can mark this as resolved

  • Matthias Schmidt 21. Januar 2018 um 12:48

    Hat das Label Ist kein Fehler hinzugefügt.

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!