Skip to main content
Participant
June 12, 2008
Question

Extract the zip files

  • June 12, 2008
  • 1 reply
  • 405 views
Hi,

I want to upload and extract the zip files. However I am able to upload the zip file but not able to unzip it after uploading. Is it possible in coldfusion mx 7. I know its possible in coldfusion 8, but I need solution in version 7. Please let me know if there is any free components or third-party API's.

Thanks!
    This topic has been closed for replies.

    1 reply

    Inspiring
    June 12, 2008
    as you know cf mx 7 does not have a built-in zip functionality.
    you will have to install a zip application (i.e. 7zip, which is free) on
    your server and use cfexecute to run it and unzip your file.

    if you are on a shared hosting you are pretty much out of luck - look if
    your server has a pre-installed php or other script to manage zip
    archives...

    Azadi Saryev
    Sabai-dee.com
    http://www.sabai-dee.com/
    Inspiring
    June 13, 2008
    You might also look into the unzipFile() function at cflib.org. It uses the core java.util.zip.* classes to unzip files.
    http://www.cflib.org/index.cfm?event=page.udfbyid&udfid=997