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

1 posts, 0 answers
  1. Telerik Admin
    Telerik Admin avatar
    1679 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