473,322 Members | 1,347 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

Multiple file selection

Hey,

I'm currently trying to find a way to open a dialog box that will allow
me to select more than one file at a time, so if I want to upload
select all the files in a directory, I won't have to have the number of
dialog boxes as files in the directory. I was thinking of using a
ActiveX control, but I don't want to make the sure download additional
components to be able to do this, so is there maybe some sort of
Windows ActiveX control that can do this?
Or maybe any of you guys have any better solution to my problem?

Thanks,
Yaniv

Nov 10 '05 #1
2 2345
VK

ya*********@gmail.com wrote:
Hey,

I'm currently trying to find a way to open a dialog box that will allow
me to select more than one file at a time, so if I want to upload
select all the files in a directory, I won't have to have the number of
dialog boxes as files in the directory. I was thinking of using a
ActiveX control, but I don't want to make the sure download additional
components to be able to do this, so is there maybe some sort of
Windows ActiveX control that can do this?
Or maybe any of you guys have any better solution to my problem?


Native FileScriptingObject (IE / Windows) and native XPConnect (Gesko /
anywhere) allow you to access local file system *with all security
checks and possible blocks of course*.
I'm doing my jsFileManager now as a uniformed wrapper over these two
very different and rather buggy technics.

It appeared to be much more time and efforts consuming than I ever
originally thought, and one of issues is directly connected with your
question.

In the particular it appeared that you cannot display standard file
dialog in Windows *because there is no such*. I know it sounds crazy
but it's true. Windows provides basic interface to the file system
(drives and folder collections, attributes etc.) but the actual dialog
window is built by the application itself. If you write a C++/C#
application you can link needed interfaces from the system library and
be happy. But when acting from the script - even WScript.Shell do not
let you such low level access. In Windows XP you can semi-hack the
situation by retreiving MSComDlg.CommonDialog over WScript but this is
not a real dialog: it's a dialog template which is ugly and
disfunctional w/o extras: for example, all folders and files will be
shown with DOS "8.3" names.

And in even in the most favorable case you cannot get multiple
selection dialog because there is no such beast in Windows: you have to
program it from the scratch (alike Java FileChooser). There is another
hack for Windows XP SP1 or higher to make your file choise multiple,
but it is not reliable and its only for this Windows version.

I personally ended up by implementing getDirectory() method which
returns an array with extensive directory info. To build a nice
multi-choice dialog window atop of it will be a pure css/html
challenge.

The above conclusions are based on my testing and reading MSDN. If I'm
wrong and there are other ways, I would like to be pointed at.

Nov 10 '05 #2

ya*********@gmail.com wrote:
Hey,

I'm currently trying to find a way to open a dialog box that will allow
me to select more than one file at a time, so if I want to upload
select all the files in a directory, I won't have to have the number of
dialog boxes as files in the directory. I was thinking of using a
ActiveX control, but I don't want to make the sure download additional
components to be able to do this, so is there maybe some sort of
Windows ActiveX control that can do this?
Or maybe any of you guys have any better solution to my problem?


maybe:
http://sourceforge.net/projects/jupload/

j

Nov 10 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Sylwia | last post by:
Hi! Have anyone ever tried to modify the Gene Cash's Tkinter tree widget (available from http://home.cfl.rr.com/genecash/) so it supports multiple items selection ( selection of multiple files...
0
by: Ringwraith | last post by:
Hi! Have anyone ever tried to modify the Gene Cash's Tkinter tree widget (available from http://home.cfl.rr.com/genecash/) so it supports multiple items selection ( selection of multiple files...
2
by: Dolorous Edd | last post by:
Hi, for a program I'm working on I need to be able to drag multiple files between Windows Explorer and a ListBox, in both directions. Implementing the "drag in" was pretty easy, but I can't find...
3
by: Matt D | last post by:
I've got two web services that use the same data types and that clients will have to consume. I read the msdn article on sharing types...
60
by: Shawnk | last post by:
Some Sr. colleges and I have had an on going discussion relative to when and if C# will ever support 'true' multiple inheritance. Relevant to this, I wanted to query the C# community (the...
3
by: siddhi | last post by:
Hi, I am very very new to vb6. I am trying to browse and read multiple microsoft word files. i am able to do for one file as follow, but not multiple files. Please I need help ASAP. Thanks Private...
3
by: Hartmut Dippon | last post by:
Hi all, I hope somebody can help me with following problem: I have an application where I can drag&drop files/dirs from within explorer onto my form. If multiple files/dirs are selected I...
2
by: Prashant | last post by:
Hi All, we are using <input id="testFile" runat="server" type="file" /> control to select file from local machine. A problem with this control is at a time we can select only single file from...
482
by: bonneylake | last post by:
Hey Everyone, Well i am not sure if this is more of a coldfusion problem or a javscript problem. So if i asked my question in the wrong section let me know an all move it to the correct place. ...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.