I have a script which generates multiple pdf files. However, when I run the same script in webdirect it offers to download only single file.
How can I make it so that it offers to download multiple files?
You would need to create some sort of "bundler" that generates a zip file on the server and sticks it into a container field for download. WebDirect is limited to only downloading one file at a time.
Something like BaseElements Plugin could be used to create a zip file and import it to a container.
If the individual PDFs are small enough, like under 20mb each, then you could use a little PHP/CWP to get data as base64, handle as a file and zip automatically. I wrote a sample a while back that did just that, you can find here: GitHub - SoliantMike/FM-WebDirect_Zip: Example showing how to extend WebDirect functionality
Retrieving data ...