Several open-source upload controls of Asp.net, flash and Ajax, support for multiple files

Source: Internet
Author: User

1. aspnetupload

Address: http://www.aspnetupload.net/

The upload control that was first exposed. It has a progress bar and can be shared with the built-in inputfile control. It only charges fees and has poor support for Firefox. Latest Version 2.3

 

2. fancyupload-swiff meets Ajax (V2.0) (Open Source)

Address: http://digitarald.de/project/fancyupload/

Falsh upload, Ajax technology, not bad.

 

3. swfupload (Open Source)

Address: http://swfupload.org/

Using JavaScript/Flash technology, it is very mature, cross-platform, and supports most browsers.

 

4. Here we provide a complete source code (from codeproject)

Address: http://www.codeproject.com/KB/aspnet/FlashUpload.aspx

Multiple File Upload with progress bar using flash and ASP. NET

You can also download

Monthly subscription supplement:

5. Ajax Uploader

ASP. NET file upload like Gmail (uploading files like Gmail makes listening to names attractive)

Ajax Uploader is an easy to use, hi-Performance File Upload control which allows you to upload files to Web server without refreshing the page.

It allows you select and upload multiple files and cancel running uploads, add new files during uploading.

Ajax Uploader allows you to upload large files to a server with the low server memory consumption. the look and feel of File Upload controls can be customized to seamlessly blend into your website design.

Demo | download

 

 

6. componentart UI framework 2009.2 for. Net Upload Component

Official Website http://www.componentart.com/

This is not necessary! Demo address

Http://aspnetajax.componentart.com/control-specific/upload/features/core_features/webform1.aspx

 

7. neatupload-controls that support uploading large files

In [recommended]. Net batch upload control -- htmlinputfiles In this article, some bloggers recommended the neatupload upload control to me, so they spent some time learning the control. I feel that this control is really good, not only supports uploading large files, the upload progress bar also exists. More importantly, the neatupload control is one of the few free controls that support uploading large files. The following describes how to use the neatupload control.
Download the neatupload Control
I. Preparations

1. Download the free version of neatupload at http://www.brettle.com/neatupload#download;

2. Access address: http://www.brettle.com/demo.aspx?corresponding demo example;

3. Add brettle. Web. neatupload. DLL to the toolbox;

4. Copy the neatupoad folder under \ NeatUpload-1.2.32 to the project root directory;

5. Write the following configuration in the system. Web node of Web. config.

<Httpmodules>

<Add name = "uploadhttpmodule" type = "brettle. Web. neatupload. uploadhttpmodule, brettle. Web. neatupload"/>

</Httpmodules>

<Httpruntime maxrequestlength = "400000" executiontimeout = "3600"/>

Ii. Use of neatupload in. net

  Front-end code

<Upload: progressbar id = "progressbar1" runat = "server" inline = "true"

Triggers = ""/>

<Br/>

<Upload: inputfile id = "attachfile" runat = "server"/>

<Br/>

<Br/>

<Asp: button id = "btnup" runat = "server" onclick = "btnup_click" text = "Upload"/>

 

Background code

Protected void btnup_click (Object sender, eventargs E)

{

If (attachfile. hasfile)

{

String filename = This. attachfile. filename; // obtain the name of the uploaded file, including the suffix.

String extenname = system. Io. Path. getextension (filename); // get the extension

String savefilename = system. io. path. combine (system. web. httpcontext. current. request. mappath ("uploads/"), datetime. now. tostring ("yyyymmddhhmm") + extenname); // merge the two paths to the full path uploaded to the server.

Attachfile. moveTo (savefilename, brettle. Web. neatupload. movetooptions. Overwrite );

String url = "uploads/" + datetime. Now. tostring ("yyyymmddhhmmss") + extenname; // file storage path

Float filesize = (float) system. Math. Round (float) attachfile. contentlength/1024000, 1); // obtain the file size and retain the last decimal point, in the unit of m

}

}

See the figure below.

 

 

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.