473,773 Members | 2,286 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2387
VK

ya*********@gma il.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 FileScriptingOb ject (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.Common Dialog 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*********@gma il.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
1527
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 like in Windows Explorer - CTRL and SHIFT keys for file selection)? Thank you in advance for any hints! Best Wishes,
0
2103
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 like in Windows Explorer - CTRL and SHIFT keys for file selection)? Or maybe someone knows the tree component available to download that supports multiple items selections? Then I will be able to take a look at the code and see how the multiple...
2
3127
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 a way to export more than on item at time. The ideal result would be to be able to drag the selected files, but as soon as I click on the LB to do the drag a new selection is made that cancels the current one and by searching with google it...
3
6510
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 (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnservice/html/service07162002.asp) but I don't want clients to have to add two web references and then manually have to edit the proxy classes. After doing some searching I found that putting references to multiple web services in a .disco...
60
4940
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 'target' programming community herein) to get some community input and verify (or not) the following two statements. Few programmers (3 to7%) UNDERSTAND 'Strategic Functional Migration
3
4852
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 Sub Process() On Error GoTo Err_Handle Dim i As Double Dim SRSWordStr As String Dim newStart As Double Dim tmpStrStart As Double Dim tmpStrEnd As Double Dim StopFinding As Boolean
3
3991
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 can see that the order I get in my drop event is not always the same as displayed in the explorer window. Further more the order changes depending on how many files/dirs are
2
2098
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 'Choose file' window. Here we need multiple file selection option from 'Choose file' window in my web application.
482
28021
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. what i am trying to display previously entered multiple fields. I am able to get my serial fields to display correctly, but i can not display my parts fields correctly. Currently this is what it does serial information 1 parts 1
0
9621
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9454
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10264
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10106
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10039
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8937
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6717
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5355
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3610
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.