Zip compress not working

I fix my problem with for loop.

this zip plugin when compress a file if file exist added new file to old compress.

I have an array with files name and …

local function zipListener( event ) if ( event.isError ) then print( "Error!" ) else for k,v in pairs(event.response) do local lastst=table.getn(attach\_images) if (attach\_images[lastst]==v) then print("I'll done...") --your other code after attach all file end end end end for i=1,table.getn(attach\_images) do zipOptions = { zipFile = "images.zip", zipBaseDir = system.TemporaryDirectory, srcBaseDir = system.TemporaryDirectory, srcFiles = {attach\_images[i]}, listener = zipListener } zip.compress( zipOptions ) end

@Rob, any answer from the development team ? On our side we need to take the decision about what we do as our app rely on zipping multiple files. We could do something like @alireza.rou13, but its not very elegant.

@Rob any news ?

If you think Corona cannot fix this quickly, you should put a note in the plugin, that zipping multiple files does not work.

This issue should now be fixed.

Additionally, you should get an error sent to your listener for more cases (such as missing parameters, files, etc.).

Give it a whirl and let us know if you encounter any issues.

Hi Michael,

I confirm that it is working perfectly. Thank you very much.

Nick