Viewing 1 replies (of 1 total)
  • Hi,
    I had the same problem (using osx, safari and firefox)
    To resolve this bug edit the file: dc_template.php in your plugin folder.
    go to:

    line 129:

    // Send headers for download
    			header("Pragma: public");
    			header("Expires: 0");
    			header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
    			header("Content-Description: File Transfer");
    			header("Content-Type: application/force-download");
    			header("Content-Type: application/octet-stream");
    			header("Content-Type: application/download");
    			header("Content-Disposition: attachment; filename=\"" . $release->filename . "\"");
    			header("Content-Transfer-Encoding: binary");
    			header("Content-Length: ".filesize( dc_file_location() . $release->filename ));
    			ob_clean(); // add new code here!!!
    			flush();
    			ob_end_flush();

    add the fuction ob_clean(); before flush

    After this modification it’s working well

    Cheers,

    Krupps

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: WP Download Codes] zips and mp3s are corrupted’ is closed to new replies.