上传多个zip文件并解压

  • PROJECT DESCRIPTION
    This project illustrates how you can upload .zip file and extract its content on the server.

    This project uses DotNetZip library to manipulate .zip files.

    Steps to achieve the approach:
  • 1.Upload .zip file using RadUpload
    2.Extract all files from the .zip using the following code

    using (ZipFile zip = ZipFile.Read(targetFileName))
    {

    foreach (ZipEntry e in zip)
    {
    e.Extract(targetFolder,
    true); // overwrite == true
    }

    }


    3.Delete the .zip

你可能感兴趣的:(zip)