# Zip multiple files without a folder

**URL:** <https://forum.servoy.com/t/zip-multiple-files-without-a-folder/20913>\
**Category:** Questions\
**Created:** [December 6, 2022, 3:07pm UTC](https://forum.servoy.com/t/zip-multiple-files-without-a-folder/20913 "2022-12-06T15:07:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vik.lamp.vl](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/vik.lamp.vl/32/4447_2.png) [@vik.lamp.vl](https://forum.servoy.com/u/vik.lamp.vl)\
**Post date:** [December 6, 2022, 3:07pm UTC](https://forum.servoy.com/t/zip-multiple-files-without-a-folder/20913/1 "2022-12-06T15:07:33Z")

</div>

Hey guys,

i need your quick help. I need to zip multiple files, so that if you open the .zip you see directly the files (pdf´s) and not a folder first.

Used tec: Servoy 2020.03 - SmartClient.

I already tried it2be.zip() and svyUtils.zip(). With one file its not a problem aswell as a folder but then the zip got the wrong structure.

Zip a folder:  
test.zip \> testfolder \> testfile.pdf

Zip one file:  
test.zip \> testfile.pdf

But i need.  
test.zip \> testfile1.pdf, testfile2.pdf, …

it2be.zip() and svyUtils.zip() are not taking a array of filenames. I always get a “cant find file” error.  
Maybe im doing something wrong?

Thanks in advance,  
Vik

---

<div class="post-metadata">

**Author:** ![sdevlin](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/sdevlin/32/4488_2.png) [@sdevlin](https://forum.servoy.com/u/sdevlin)\
**Post date:** [December 6, 2022, 4:54pm UTC](https://forum.servoy.com/t/zip-multiple-files-without-a-folder/20913/2 "2022-12-06T16:54:56Z")

</div>

Hi Vik,

Can you please post your code sample for the svyUtils approach?
