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 2 1972
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**********@y ahoo.com> wrote in message
news:8B******** *************** ***********@mic rosoft.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
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**********@y ahoo.com> wrote in message news:<8B******* *************** ************@mi crosoft.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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 course, we can use <input type=file ...>
multiple times and then submit once. But this is not what
I want, because we have to click "browse" button several
times to select multiple files before submit in this
way.) "Upload multiple files PER TIME", I...
|
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 programmatically set the
value of <input type='file'> in IE because it poses a security risk.
I didn't know these two facts before I tried to create a client-side
activeX component in VB6 which would allow someone to select multiple
files from their hard...
|
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 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.
|
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 when I
give a path like @"C:\holdfiles\myfile.txt" it looks on the server C drive.
How do I pull from the client? Do I need a different class and/or method?
Filestream?
--
Thanks,
|
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 upload javascript using the
below link:
http://the-stickman.com/web-development/javascript/upload-multiple-files-with-a-single-file-element/
| |
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 images/media uploaded by admins, but also by
members (in forum and blogs and such). Nothing strange about that at
all.
But now I'm faced with the need of moving - physically - all my media
to a separate server, for distributed loads. I.e. when...
|
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 looking for.
My problem is that i have to upload images and store them. I am using
filesystem for that.
setup is something like this, their will be items/groups/user each can
|
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 script which receives all the data and creates a file in the specified directory.
If I am uploading only the file all works well, however I want to send data of other fields too (field1, field2 ..etc), this fails the post request and even the file is...
|
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...
|
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,...
|
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...
| |
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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();...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |