jeremycaris
Member
Posted 11 months ago #
I recently purchase the Stripe and Mailchimp addons, and tested my first download successfully. Then, my second seemed to work except that after clicking on the download link, the file downloaded at zero bytes. Through trial and error, I found that there seems to be a file size limit for the downloads. I found that if the download is 6mb or under, it works perfectly. Anything larger, and the download is corrupt with zero to a few hundred bytes in file size. Most of the downloads that I planned to sell through this plugin are sets of mp3's which are 20-40mb each. What can I do to fix this issue? I just installed the plugin and extensions with the latest versions, on WordPress 3.4.
http://wordpress.org/extend/plugins/easy-digital-downloads/
It sounds like your server has a limit on the size of file that can be read via URL. Try defining the EDD_READ_FILE_MODE constant to "header", as described here: http://easydigitaldownloads.com/docs/edd_read_file_mode/
jeremycaris
Member
Posted 11 months ago #
That fixed the issue, but the browser wants to play the file instead of triggering a download. Is there any adjustment that I can make to my php.ini file to change the limits instead?
jeremycaris
Member
Posted 11 months ago #
Try removing the EDD_READ_FILE_MODE and adding this instead:
ini_set('allow_url_fopen', 'on');
jeremycaris
Member
Posted 10 months ago #