List Contents of Zip Files

List Contents of Zip Files

Learn how to list the contents of zip files, without unzipping them

With this movie we will show you how to list the contents of zip files, without unzipping them using DMXzone Zip Processor

Step by Step

we will show you how to list the content of zip files, on your page, without unzipping them using dmxzone zip processor. We added a simple html table, which will be used, to list the zip files and their content. first, let's create an action file. And add a name for it (1). right click steps. And open the file management menu (2). then, add folder list. We will use the folder list, as a dynamic source, for our zip files (3).

Add a name for this folder list (1). And then, select a path (2). We select the folder, containing our zip files (3).

then, we limit the listed files, to zip. Now, right click the folder list step. And under core actions, select add repeat.

Then, add a name for the repeat (1). And select an expression for it (2). We select the folder list, as an expression. And then, click the select button (3)

We select the output fields, from the folder list which we will need to display later, in the table. In our case, we will need the names, of the listed files (1). Now, right click steps, in the repeater. Open the zip processor menu. And add zip list (2).

Open the zip processor menu. And add zip list.

Add a name for it. And select the zip file, which's content you want to list (1). We click the dynamic data button (2). And then, we select the path binding, returned by the folder list repeat step (3).

Save the action file when you are done (1). And then, create a server action executor (2). Click the add new button. Add a name for your executor (3). Select to run it on dom ready. Then, select your server action (4). And click the ok button.

Now, let's expand our server action executor tree. Under data, you can see the folder list repeater, with the name binding. Also, inside it, you can see the zip list data. Let's bind the data on our page. Select the folder list repeater (1). Then, select your table row, which you'd like to repeat (2). Open the bind to menu. And select table row data repeat (3). Then click the bind button (4)

This will repeat the row, as many times, as the returned zip files are. Now click inside the row (1). Select the name binding, under the folder list repeater (2). And insert it (3).

Now, as we have our zip files listed, we need to create another repeat region, in order to display their contents (1). Click in the table, inside the repeated row, where you need to show this. And select the zip list, under the action file executor (2). Select to bind it as a repeat region, and click the bind button (3)

Then, click inside the repeat region, which we just added (1). Select, the information, that you'd like to show about the files, inside the zip (2). We'd only like to show the file names for our video. So click the path binding. And bind it on the page. And we are done (3). Let's preview the results.

Here, you can see the zip files, from your folder as well as the contents, of each of them, on the right. That's how easy it is, to display the contents of your zip files, without unzipping them, using dmxzone zip processor.

Extensions Covered


Be the first to write a comment

You must me logged in to write a comment.