40
Views
2
Comments
Download different files into a folder ( NO ZIP )
Application Type
Traditional Web, Reactive

Hello, I would like to know how I can download files to a folder without compressing them into a zip file. Not to an existing folder on my computer, but rather to download a regular folder without it being compressed in a zip file. I wouldn't mind downloading a zip file and having the regular folder inside it. 

Thanks !

2019-10-24 21-01-44
Jay Parnau
Staff

Create a temp folder on your server, and add files to it with this:

https://www.outsystems.com/forge/component-overview/68/filesystem


Zip the folder with this:

https://www.outsystems.com/forge/component-overview/356/bigzip


Then you can use FileSystem extension again to get your .zip, and the standard OutSystems download action.

UserImage.jpg
Gabriela Telega

In the end, what I did was inside the zip, in the AddFile function, add + "/FolderName" + to the fileName. This way, inside the zip, a loop was created and for each list, the files were added in a folder. 


Thank you anyway ! 


Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.