Anybody know how to unzip a zip file once uploaded (or ftp’d) to the server using a script? I’m not sure if any of the installed components have this functionality…
Example: I’d like to allow a user to upload a zip file full of photos to the server, then have a component or script unzip the file and place the photos in a photos folder.
[QUOTE=WebDeveloper]
Anybody know how to unzip a zip file once uploaded (or ftp’d) to the server using a script? I’m not sure if any of the installed components have this functionality…
Example: I’d like to allow a user to upload a zip file full of photos to the server, then have a component or script unzip the file and place the photos in a photos folder.
Any help? Thanks!
[/QUOTE]
There are components available for this (aspZip.EasyZip), but I don’t see any such components listed on jodohost’s list of installed components. The file manager availble from the control panel does zip and unzip, so there must be a component somewhere on the system to do the dirty work. Perhaps jodohost could make it available. If not, perhaps they would consider installing such a component.
Well, we really have no problem buying any of these components but we’re going to have to do some research and look for a component that wouldn’t cause any security issues
Doesn’t see these companies offer any ISP versions of their components
[QUOTE=Yash]
I’m looking into this
I am mainly concerned how it handles permissions and whether it can be used to write outside the user’s directory
[/QUOTE]
Thanks for looking into this. I’ll do a little bit of homework myself and see if I can make any knowledgable suggestions that might speed up the process.
anyone even tried this on a local machine?
[/QUOTE]
I have not, but after reading through the API Reference and Examples, it seems very useful. It doesn’t seem like a security threat either as the functionality is limited. Great find Stephen, thanks! Can we register it on Win6?