Adds the decompression function to the website to solve the problem of slow upload speed or FTP not supported (support for Asp.net and sharpzip is required)

Source: Internet
Author: User

Many free websites (supporting Asp.net) do not support ftp. They can only upload files one by one on the Web end, which is troublesome;
After many files are compressed, the volume can be much reduced, and multiple files can be compressed and uploaded together, and then decompressed on the server. If this problem can be solved, it will bring a lot of convenience.
I will useCodeIt is easy and fast to package and upload the files to be uploaded and decompress them on the server.
Use sharpziplib to easily compress and decompress files

Currently, my simple practices (using aspspider.net as an example ):
1. compress the file to be uploaded, for example, compress all the assembly files to bin.zips, and compress all aspxs under the local file to the local file. ZIP file, and use the control panel provided by the website (you can alsoProgramAdded the upload function) to the webroot directory;
2.use unpack.aspxto uncompress the bin.zip file to the BINLOG directory and zip it to the PDF directory (the directory can be created automatically if it does not exist ).

If you are interested, try the demo on the following website:

Http://aspspider.net/tonyfox/Unpack.aspx

Want to apply for free ASP. net2.0 space? Look at this:
A free space supporting ASP. net2.0 and SQL Server and access

Because the code is very rough, no aspx code is provided for the time being, the core code is provided, and more functions and a good name are being considered (if necessary)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.