I have been trying to implement a way to add files (or rather the file's title and URL) from different pages to a cookie that remains throughout the session, which a user can at anytime choose to email to a nominated email address using a custom form.
Ideally these files could all be added to a zip which is then attached to the email, and I have found a few JS libraries that can zip up files through the front end, but they rely on HTML5 and unfortunately don't work in older versions of IE. Zipping server side via PHP also isn't an option.
Assuming that the zip method isn't possible, I was looking at using a custom session variable with asset numbers/URLs and titles of files (1 file or 18 files for example) that can be passed in to the custom form using the 'Custom File Attachments' option with a dynamic parameter. The issue I'm running in to now is that I can only seem to attach one file per variable, I assume by adding more dynamic parameters with different variable names and providing asset numbers to those different variables I could attach more, but as the user could attach 1 or 100 files, this isn't a viable method.
Is there anyway I can pass multiple asset numbers in through a single variable to have it attach all of the files using the one variable? Or does anyone know of a way that Matrix can natively do what I am trying to achieve above?