简体   繁体   中英

zip extraction in sharepoint server 2010

如何在SharePoint Server 2010中上载和提取zip文件?

A solution might be to use a Document Library to upload the zip documents and then hook up an event handler on it to intercept uploaded documents and unzip them, you can then decide what to do with it, you can even store the unzipped version and drop the original file .

You can see an example here on how to create an event handler for a document library:

http://karinebosch.wordpress.com/walkthroughs/event-receivers-walkthrough2/

The event receiver approach for working with Zip files (or any potentially large documents) has several limitations, like potentially using lots of server memory during the unzip process or having the thread be terminated by IIS if it takes too long to run, which means you won't be able to handle any non-trivial zip files.

There's a package that handles these issues and more here: http://www.blackbladeinc.com/en-us/products/wsszip/Pages/WhatsNew.aspx

Some of what that software handles that are hard to do with just an event receiver include:

  • forms-based / claims-based authentication
  • downloading and uploading of very large (multi-gigabyte) Zip files
  • SharePoint farms with load-balanced web servers

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM