Hi there,
I’m afraid this feature falls outside the scope of this plugin. I may look at automatically compressing a group of files in the future but it’s not something I’m working on at the moment.
As for starting another download after the previous ones starts, I’m not sure that it would even be possible, therefore that is something I don’t plan on including. If it were possible it would be a nightmare to try and get it working on every WordPress setup.
The only thing you can do at the minute is manually compress the files before uploading them.
Thanks,
Ashley
Ok, no problems I understand. Since the site I´m currently building works around streaming (two) mp3-files this would mean using up more disk space than necessary.
Regarding starting one download after the other I´ve solved this issue already on my site with a bit of jQuery. But as you say it might be difficult to get this working on all types of WordPress installs.
Thanx! Below I´ve pasted in the snippets I use for download of File_A, then File_B. Someone might find it useful.
jQuery
if ($('.download').length) {
$('.download').on('click', function () {
var files = $(this).data('files').split(' ');
multiDownload(files);
});
}
.htaccess
##Force Download of files
<FilesMatch "\.(?i:mp3)$">
ForceType application/octet-stream
Header set Content-Disposition attachment
</FilesMatch>
html/php
<button class="download" data-files="File_A, File_B">Download files</button>
Excellent, thanks for sharing the code.
Ashley
Sorry, forgot to paste in the link to the library by Sindre Sorhus I´m using. Here´s the link: https://github.com/sindresorhus/multi-download