Page 1 of 1

Zip multiple files without a folder

PostPosted: Tue Dec 06, 2022 5:07 pm
by vik.lamp.vl
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

Re: Zip multiple files without a folder

PostPosted: Tue Dec 06, 2022 6:54 pm
by sean
Hi Vik,

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