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