HI All,
can any one help me out in selecting multiple files for uploading them to the server.

The requirement is as follows.
1) SELECTING MULTIPLE FILES (around 50 images) at a time using Shift/Control keys from keyboard
2) upload them to server .


Note:
1) The solution should work for MAC, FireFox and IE (5+) Browsers. Hence the solution is expected not in the form of signed ActiveX / signed Applets.
2) There should be no multiple Browse option and <input type="File" />

Thanks in advance


VG

Recommended Answers

All 8 Replies

ASP.NET does not allow this as far as I know. Your only options are ActiveX and Java Applets. ActiveX mostly runs on IE but Java runs on the other browsers, as you want it to.

I have the same issue. I want to upload multiple files using the shift/control keys on the keyboard.

At the moment, I am using the FreeASPUpload code, with multiple browse buttons.

Is there a possibility to add the multiple select functionality using Java, and then still uploading the files with ASP?

Many Thanks,

Dieter

Well, the thing is that you must have an activex or java application to get the files. Uploading them after that point is always open to anything you wish. What it does is puts the selected files into order and uploads one at a time, or some will upload all of them at once. If you know java, then build an application that submits the upload directory url to an asp page, which uploads the file. You would do this for as many times as you need. Your best bet in this instance would be to use Ajax and the Java. This way you can upload all the files at once, and don't have pending requests to the server. But what you are talking about doing is a lot of coding, so make sure it's worth it on your end. Otherwise, look on c-sharp corner (a website) and look for flash file upload. It's a program that a member of that site built that (I believe), accepts multiple uploads at once. However, I do believe you have to select one at a time.

In my opinion, it's not worth it as most people won't care. They would "love" that functionality, but they won't hold it against you that you do not have it.

As for now, It all works with multiple browse buttons. Files are successfully uploaded and processed for loading their data into the database.

So the only thing I need would be the select functionality.
I think about several possiblities.
- Have some coding for the multiple select using ctrl/shift, and that the filenames are written as defaults to the selection boxes that I already have. Then I can upload them with the asp-code I already have.
- If the multiple selection is still impossible or might require too much work. Then I think my client would settle with a solution where you can select an entire folder (so only one selection is made) and that a script loops through all the files in it and fills in the filenames again in the selectionboxes.

Does anyone know some code for either selecting a folder, and read the contents. or either select multiple filenames using shift/ctrl, an write those names in a form-input element.

best regards

Dieter

Hello.

Only third party solution can provide functionality for upload multiple files at once. As mentioned above posts it can be: ActiveX , Java Applet, Flash/Flex based controls, Silverlight based controls.
ActiveX and Java applet has usually advanced functionality but requires attention to trust certificate and client's security. Flash/Flex based and Silverlight based controls are more handy but have a limited access to user's OS and file system. Though, in most cases they are cover demanded requirements. Here are some of them:

http://www.swfupload.org - free flash-based control

http://www.easyalgo.com/eaflashupload.aspx - half free flash-based control

http://www.codeplex.com/SilverlightFileUpld - free silverlight-based control

Hello.

Only third party solution can provide functionality for upload multiple files at once. As mentioned above posts it can be: ActiveX , Java Applet, Flash/Flex based controls, Silverlight based controls.
ActiveX and Java applet has usually advanced functionality but requires attention to trust certificate and client's security. Flash/Flex based and Silverlight based controls are more handy but have a limited access to user's OS and file system. Though, in most cases they are cover demanded requirements. Here are some of them:

http://www.swfupload.org - free flash-based control

http://www.easyalgo.com/eaflashupload.aspx - half free flash-based control

http://www.codeplex.com/SilverlightFileUpld - free silverlight-based control

That's actually incorrect. You can use AJAX to do multiple file uploads, however, you will most likely not have any idea of the size of the file without contact to the file system, which requires third party controls like ActiveX.

By the way, this thread is very old.

ASP.NET does not allow this as far as I know. Your only options are ActiveX and Java Applets. ActiveX mostly runs on IE but Java runs on the other browsers, as you want it to.

Uploading files is one of the most common task on the internet and these stupid executives at Microsoft were not clever enough to figure out that it might be useful to develop a little more than just uploading 1 file at a time function.

Stop using Microsoft is the only way to make them smarter

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.