Unable to download ZIP file

Hello Team, We have used ZipHandling module from app store to zip multiple files and then download zip file, but we are getting this below error(Did not expect an argument to be undefined Error: Did not expect an argument to be undefined) when security of project is set to production and when we changed the project security as OFF then the zip file is getting downloaded, how can I fix this issue ?     Thanks In Advance
2 answers

Hi Ashar,

Do you store the zipped file in the default FileDocument entity? If this is the case, try to create a new entity in your own domain model, inheriting from FileDocument. Make sure to use this new entity to store the zip result into, instead of the FileDocument entity. Now you can configure your own entity access rules (for this new zip result entity), which should prevent this error from happening.

See https://docs.mendix.com/howto/data-models/working-with-images-and-files#4-file-documents for more information.

Hope this helps!


Does the created file have a (file)name? In my experience it's what Allard says, a security issue, or a missing filename.