WordPress.org

Ready to get started?Download WordPress

Forums

Easy Digital Downloads
[resolved] .MP4's Download Broken (zero bytes ) .MP3s work fine (2 posts)

  1. Arthur Klein
    Member
    Posted 1 year ago #

    Hi Pippin,

    Hopefully the last bump in the road for a few miles.

    After a long few weeks of debugging i am down to 1 issue:

    .MP4s file that are usually just about 1 gig in size download only result in zero byte downloads.

    At your suggestion, I am now using the Add From Server plugin and all files are in subdirectories within /wp-content/uploads/edd/ path

    It seems that MP3s, PDFs work fine, But the MP4 files still will only download as 0 byte files...

    i am using EDD version 1.1.8 BUT upon looking at the process-download.php i don't see the .MP4 file type reference in process-download.php file code.

    Under the switch section there are the follow files mentioned in the code, although there seems to be no MP4 reference. Just wondering if this is something that would cause the bug of (zero byte downloads on MP4s.:

    switch ($file_extension) :
    case "pdf": $ctype = "application/pdf"; break;
    case "exe": $ctype = "application/octet-stream"; break;
    case "zip": $ctype = "application/zip"; break;
    case "doc": $ctype = "application/msword"; break;
    case "xls": $ctype = "application/vnd.ms-excel"; break;
    case "ppt": $ctype = "application/vnd.ms-powerpoint"; break;
    case "gif": $ctype = "image/gif"; break;
    case "png": $ctype = "image/png"; break;
    case "jpe": $ctype = "image/jpg"; break;
    case "jpeg": $ctype = "image/jpg"; break;
    case "jpg": $ctype = "image/jpg"; break;
    case 'mp3': $ctype = "audio/mpeg"; break;
    case 'wav': $ctype = "audio/x-wav"; break;
    case 'mpeg': $ctype = "video/mpeg"; break;
    case 'mpg': $ctype = "video/mpeg"; break;
    case 'mpe': $ctype = "video/mpeg"; break;
    case 'mov': $ctype = "video/quicktime"; break;
    case 'avi': $ctype = "video/x-msvideo"; break;
    default: $ctype = "application/force-download";
    endswitch;

    I tried adding the following the switch reference for MP4s but it still isn't working.

    case 'mp4': $ctype = "video/mp4"; break;

    but .MP4s still only will initiate a zero byte download...

    PLEASE HELP we are almost at the finish line.

    Once it is all working then i can take the time to buy, install and use the EDD Widget addin and the Mailchimp addin and maybe even the affiliate plugin...

    Thanks Again for a great plugin.

    Arthur
    @theGuruWithin
    http://erichshiffmann.com
    AKoSM@erichschiffmann.com

    http://wordpress.org/extend/plugins/easy-digital-downloads/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic