• 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!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter joesfoes

    (@joesfoes)

    Nothing like a great plugin with zero support…awesome!

    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.

    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");

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Drain Hole and File Corruption after download…’ is closed to new replies.