473,378 Members | 1,344 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,378 software developers and data experts.

List files of a directory in client side

Dear Folks

I am programming a page that asks user a directory name and lists files
of type *.xls in the directory in client's machine. He/She will then
select some files to upload them to the server.

Is there any way to ask a directory name and then list the files of
that directory in client's machine? The typical browser that is used is
IE but I am not allowed to use ActiveX objects.

I found http://tinyurl.com/a4hhs the message talked about it but it
seems it is about server side file listing not client side.

Any help is highly appreciated.

Regards

Jul 23 '05 #1
3 14050
VK
> Is there any way to ask a directory name and then
list the files of that directory in client's machine?
The typical browser that is used is
IE but I am not allowed to use ActiveX objects.


No.

You can:
1) Use properly signed Java swing applet with JFileChooser.

2) Buy a 3rd party signed object/plugin.

In both above cases you're still dependable on user decision - grant
permissions or not.

3)
<form method="post" action="action.cgi" enctype="multipart/form-data">
Please choose XLS files you want to download:<br>
<input type="file" name="file1"><br>
<input type="file" name="file2"><br>
...
</form>

Jul 23 '05 #2
ASM
Hamed wrote:
Dear Folks

I am programming a page that asks user a directory name and lists files
of type *.xls in the directory in client's machine. He/She will then
select some files to upload them to the server.

Is there any way to ask a directory name
because you know exactly the path of this directory ?
on a foreign machine ?
and then list the files of
that directory in client's machine? The typical browser that is used is
IE but I am not allowed to use ActiveX objects.

I found http://tinyurl.com/a4hhs the message talked about it but it
seems it is about server side file listing not client side.


all what I know is
<form>
Select a file <imput type=file> and validate (button)
</form>

--
Stephane Moriaux et son [moins] vieux Mac
Jul 23 '05 #3
Hamed wrote:
I am programming a page that asks user a directory name and lists files
of type *.xls in the directory in client's machine. He/She will then
select some files to upload them to the server.

Is there any way to ask a directory name and then list the files of
that directory in client's machine?


Yes, use

<input
type="file"
name="..."
accept="application/vnd.ms-excel,application/msword">.

It may not filter for Excel files as it should, but at least the user
can select the file. And, more important, it works with plain HTML.
PointedEars
Jul 23 '05 #4

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

Similar topics

2
by: Bill Manring | last post by:
In an ASP.NET web application, I am using the standard list box server control and I am adding items to with client side script. When the page posts back, the added items are not available on the...
4
by: Clay Wilcox | last post by:
Can anyone assist in converting this sample from msdn into c#? #include <windows.h> #include <userenv.h> DWORD CALLBACK ProcessGroupPolicy( DWORD dwFlags, HANDLE hToken, HKEY hKeyRoot,...
1
by: PB | last post by:
I have an aspx with 4 Drop-Down list boxes on it. All the list values are hard-coded in the aspx. I want a client-side JavaScript function to select a value in each of those DDLs. I can...
1
by: feng | last post by:
I have a VB.Net program that consumes a web service. When calling the web service from my program, I would like to be able to capture and evaluate the request xml going out and the response xml...
4
by: math.kiran | last post by:
I have a list box which gets populated client side (Javascript). Now when I submit the page - I need to capture all the list item and store it in database. What is the elegant way to do it in...
2
by: Eli Silverman | last post by:
I am attempting to develop a form that lists available speakers for a meeting. One of my clients can have as many as about 800 contracted speakers and a variety of 100 topics that they can speak...
2
by: Tanmaya Kulkarni | last post by:
Hi, Since C# / VB.Net code executes on the server, all the path given during file creation point to physical path on server. Is there some mechanism where were can create text files on the...
9
by: shailaja.sheel | last post by:
Hi , This is my first attempt to do some html/javascript programming and I am totally lost. I have a questionaire form and when user clicks Submit, I want to save the data in XML file on client...
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...
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
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.