Upload a Zip File and Unzip it on the Server

Upload a Zip File and Unzip it on the Server

Learn how to upload a zip file and unzip it on your server

With this movie we will show you how to upload a zip file and unzip it on your server, using DMXzone Zip Processor.

Step by Step

We will show you how to upload a zip file and unzip it on your server, using DMXzone Zip Processor. We added a form on our page, containing a single file upload field and a submit button. We'd like to allow our users, to upload zip files, and extract their content in a specific folder, after upload. First, let's create an action file. And add a name for it (1). Then, select globals (2). Link your page, containing the form (3).

Select your form, from the dropdown, and click the import button (1). Then, right click steps (2).

Open the file management menu (1). And add file upload (2).

Select your upload field (1). Under globals, post select the file field, from your form (2). And click the select button.

Then, select an upload path, for the zip file (1). And click the select folder button (2).

Right click the file upload step. And open the zip processor menu. then, add unzip files (1). And click the dynamic path button for the zip file (2).

Select the path binding, returned by the file upload step (1). then, click the select button (2).

And select a destination, where the zip file, should be unzipped (1). Click the select folder button (2).

Now, let's setup the remove zip, after unzipping it (1). Right click the unzip step. Open the file management menu. And add file remove (2).

Select the dynamic path button, for the file, which needs to be removed (1). Select path, returned by the file upload step (2). And click the select button. Save your action file (3).

And add an executor for it (1). Add a name for this executor (2). And select to run it, on form submit (3). Select your server action, from the dropdown. And bind it to your form. then, set the method to post. And click OK (4).

Let's preview the results. Browse to your zip file select it and click the submit button. You can see the unzipped content, on your server.

Extensions Covered

Comments

Be the first to write a comment

You must me logged in to write a comment.