Forums

Drain Hole
Drain Hole and File Corruption after download... (4 posts)

  1. joesfoes
    Member
    Posted 10 months ago #

    Hello,

    Great plugin btw, using it for years! It appears that suddenly out of the blue this plugin has started to "corrupt/invalid" all downloads that come directly from it. The zip files are not actually corrupted as nothing has changed about them since before, but now they give you the following error message:

    "The Compressed zipped folder C:\X\X\X.zip is invalid"

    If I download these files directly from my site using FTP client and go to open them they work fine, but when I use Drain Hole plugin to do it via my website I keep getting this error message.

    I have even repaired the archive using WinRAR, tested it on my computer, works fine, reupload it to my site and download it using Drain Hole and the corrupted error message pops up.

    Any advice/help would be great! Please!

  2. joesfoes
    Member
    Posted 9 months ago #

    Nothing like a great plugin with zero support...awesome!

  3. millbank
    Member
    Posted 8 months ago #

    What happens on a regular file, like a PDF for instance?

    I'm having a similar issue where the PDF that are downloaded don't show the extension .pdf and even if I add it when downloading it doesn't open up.

  4. Thomas Jaggi
    Member
    Posted 5 months ago #

    I had an issue with corrupted files as well.
    Adding "ob_end_clean();" before outputting the headers fixed it.

    drain-hole/models/file.php:

    Before:
    header ("Content-Type: $mime");

    After:

    ob_end_clean();
    header ("Content-Type: $mime");

Reply

You must log in to post.

About this Plugin

About this Topic