Please try: ```response.setContentType("applicatio...
# suitescript
a
Please try:
Copy code
response.setContentType("application/zip");
response.addHeader("Content-Disposition", "attachment; filename=file.zip");
Also make sure archiver.add does not add the full path when attaching the files, NetSuite/MacOS both use similar/same file path /root/folder/archive.pdf and this will be invalid in Windows.