We are building a bulk document export functionality for our application, for which we are using the Add Documents to Zip Plugin. It seems that Add Documents to Zip Plugin supports certain file types but not others. So far I have not had an issue with docx, excel, PDF, or image files, but html files do not seem to be supported as part of this plugin. Is anyone aware of what file types are or are not supported by this plugin?
Additionally, when two files of the same name are added, the document paths of the two files are identical and cause an error. Is there any way of getting around this?
Thanks!
Carson
Discussion posts and replies are publicly visible
If you look at the source of the plugin, it does seem to explicitly disallow files that have the same file path. You'd need to check for any similar doc names and change one of them using the Document Properties smart service before invoking the add document to zip plugin.
I don't see anything off hand that would inherently disallow html files, or a file of any extension for that matter. What error do you get in the std-out log when you try to add html files?
Josh said:it does seem to explicitly disallow files that have the same file path
That's good because I believe this is a hard limitation on ZIP files, as they would otherwise be severely incompatible with the Windows FS at least.
Josh, thanks for your reply. There is no std-out log entry, but the zip file does seem to be corrupted. This is the email when sent with the attached zip file containing an html file:
This is the text of that file:
Here are the screenshots in better quality
Can you review the zipped file directly on the Appian site? Is that corrupt? Or OK? Does the admin console list any file upload restrictions on a global/platform level?
By only examining the file in the email, you aren't necessarily ruling out other root causes, such as the email servers filtering out emails with file attachments of certain extensions.
Resolved. Issue ended up being an email attachments filter like you stated. Zip File generates fine within Appian. Thanks!