This java action allows you to create a .zip file from a "List of FileDocument". Rather straightforward.
Modules3 stars, based on 5 votes
4/5starsWorks like a charm on 7.16. It is not stated in the documentation, but you will have to create a new FileDocument name [nameOfTheZip].zip and set this also as input for the java action too.
3/5starsDownload file doesn't work (Mendix version 7.18.1). I created a filedocument with a name [zipfilename].zip and fill it successfully with a list of filedocuments, but it won't download with the download activity.
3/5starsThe tmp file is not getting deleted due to inputstream is not closed. This will unnecessary keep piling up the temp file. So before tempFile.delete(), you need to close zipInputStream.close();