Share one. NET version of the multiple-selection file Upload Operation example

Source: Internet
Author: User
Tags file upload

File upload, no refresh upload, file bulk upload, batch No refresh upload, these words seem very many this year, regardless of that upload can meet the actual needs is good, general upload files, point file browsing box, can only select a single file, if you want to upload multiple, browse many times, and then click on the bulk upload on it, Also very good, also does not refresh also has the progress to show, completely good. There are many examples of uploading files on the Web, and you can click and hold down the CTRL key or SHIFT key to select multiple, and then upload. But it's like this. NET version of a few, friends sent me a clean up the demo, and then I sorted a little bit, feel good, you can share it for everyone, well and bad do not say, because there is no perfect thing, can be applied to everyone's practical needs on the line. First of all, this is the way to upload the mechanism is the same as the general no refresh upload the same embedded a SWF file, with the JS call to achieve no refresh effect (test demo end of the article download)

(1) Browse the Upload file box to set the file filter format:

if (form1.ddlfiletype.value== "P")
{
size_limit= "0";//1m=1048576;
Types= "*.jpg;*.bmp;*.gif;";
types_description= "image file";
}
ElseIf (form1.ddlfiletype.value== "a")
{
size_limit= "0";
Types= "*.mp3;*.wmv";
types_description= "audio file";
}
ElseIf (form1.ddlfiletype.value== "R")
{
size_limit= "0";
Types= "*.rm;*.avi;*.mpeg;*.rmvb;*.wmv;*.dat";
types_description= "video file";
else
{
size_limit= "0";
Types= "*.*";
types_description= "All Documents";
}

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.