473,407 Members | 2,306 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,407 software developers and data experts.

Enumarating through client's directory structure and upload multiple files to server

Hi

I am building an web based .NET Application which allows users to specify a directory location from it's machine, and when it press publish it uploads all the files and subfolders folders from that directory to server. I just want to know if there is any mathod in .net which allow me to browse through client's directory structure programatically and give me subfolders and files info to upload them on server. I have build similar app using directory object. but it works only on server not client to server. Any help in this will be much appriciated

regards
Nilesh
Nov 18 '05 #1
2 1942
Not easy...
You are going to need to write/get an activex control to do something like
that. You can imagine for security purposes that browsing/uploading from
the client is a big no no. The closest thing to that is using the <input
type=file /> tag, which allows the client to select ONE file which can be
posted and you can save that to the server. But if you are looking into
uploading entire directory structures, that tag wouldn't suffice. Honestly
I'd look into creating a windows forms application that would ftp the files
up, or just teach the client how to ftp with their own ftp client program,
either way would be much easier than doing what you want through a webpage.

HTH,
--Michael

"SharepointKida" <al**********@yahoo.com> wrote in message
news:8B**********************************@microsof t.com...
Hi,

I am building an web based .NET Application which allows users to specify a directory location from it's machine, and when it press publish it uploads
all the files and subfolders folders from that directory to server. I just
want to know if there is any mathod in .net which allow me to browse through
client's directory structure programatically and give me subfolders and
files info to upload them on server. I have build similar app using
directory object. but it works only on server not client to server. Any help
in this will be much appriciated.
regards,
Nilesh

Nov 18 '05 #2
I don't think it is possible using just HTML and javascript. It will
be a security hole if javascript can do that. However, you can have
the client download a .NET component, and use that component to
retrieve the client's directory structure.

Tommy,

"SharepointKida" <al**********@yahoo.com> wrote in message news:<8B**********************************@microso ft.com>...
Hi,

I am building an web based .NET Application which allows users to specify a directory location from it's machine, and when it press
publish it uploads all the files and subfolders folders from that
directory to server. I just want to know if there is any mathod in
..net which allow me to browse through client's directory structure
programatically and give me subfolders and files info to upload them
on server. I have build similar app using directory object. but it
works only on server not client to server. Any help in this will be
much appriciated.
regards,
Nilesh

Nov 18 '05 #3

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

Similar topics

6
by: x. zhang | last post by:
Hi Guys, We know that we can use <input type=file ...> to upload one file per time to the server. My question is if there are some way to upload multiple files per time to the server. (Of...
0
by: Glynn Johnson | last post by:
I understand that there is no way to upload multiple files using ASP and COM+ without having multiple form elements like <input type='file'>. I also understand that there is no way to...
3
by: Hamed | last post by:
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...
9
by: CGW | last post by:
I asked the question yesterday, but know better how to ask it, today: I'm trying to use the File.Copy method to copy a file from a client to server (.Net web app under IIS ). It looks to me that...
0
by: pbd22 | last post by:
Hi. I am having a really tough time here and would appreciate some help. i am using an iFrame to pass a url string of files to upload to server. on the client i have created a multiple...
2
by: Sandman | last post by:
Ok, so I'm the author of a pretty big CMS system (big as in huge, not market-share big) and I've been thinking about a problem for a few weeks here on media management. The CMS accomodates both...
8
by: theCancerus | last post by:
Hi All, I am not sure if this is the right place to ask this question but i am very sure you may have faced this problem, i have already found some post related to this but not the answer i am...
1
by: starter08 | last post by:
Hi, I have a C++ routine(client-side) which uploads an xml file to a web server by making a socket connection and sending all the post request through that socket. On the server side I have a cgi...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
0
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...
0
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...
0
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...
0
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.