How to upload multiple files using RadUpload (uploading .zip file and extract it on the server)

Thread is closed for posting
1 posts, 0 answers
  1. 63F75A2C-1F16-4AED-AFE8-B1BBD57646AD
    63F75A2C-1F16-4AED-AFE8-B1BBD57646AD avatar
    1572 posts
    Member since:
    Oct 2004

    Posted 16 Jun 2008 Link to this post

    Requirements

    RadControls version

    RadUpload for ASP.NET AJAX

    .NET version

    2.0

    Visual Studio version

    2005

    programming language

    C#

    browser support

    all browsers supported by RadControls


     
  2. 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:
  3. 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
  • Back to Top

    This Code Library is part of the product documentation and subject to the respective product license agreement.