473,473 Members | 1,456 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Uploading Files and Folders

Hi,

we are putting together an application that will allow a user to upload
files or folders via a browser to the server. We know how to do this for
files but have never done it for whole folders. Is there a way to do this
with existing .NET methods? I have had a very quick look in MSDN but have
not found anything. Or will we need to loop through all files in a folder
and upload each one individually?

I have found a negative answer in gotdotnet, but want to make sure that is
still true:
http://www.gotdotnet.com/Community/M...=29725&Page=1#
29725

Thanks for your help

Mauro
Nov 18 '05 #1
5 1560
The problem is not in ASP.NET. The problem is that Browser is not capable to
upload folders.

You might look into creating ActiveX componenet to do that and have it on
your page.
George.

"Mauro" <ma*****@mpt-ltd.com> wrote in message
news:et**************@TK2MSFTNGP11.phx.gbl...
Hi,

we are putting together an application that will allow a user to upload
files or folders via a browser to the server. We know how to do this for
files but have never done it for whole folders. Is there a way to do this
with existing .NET methods? I have had a very quick look in MSDN but have
not found anything. Or will we need to loop through all files in a folder
and upload each one individually?

I have found a negative answer in gotdotnet, but want to make sure that is
still true:
http://www.gotdotnet.com/Community/M...=29725&Page=1# 29725

Thanks for your help

Mauro

Nov 18 '05 #2

Hi,

thanks for the reply. The problem with ActiveX controls is (so I'm told)
that they create problems when trying to access servers across
firewalls. Is that so and is there any way around the problem?

Thanks,

Mauro


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 18 '05 #3
There is no problems with firewall and ActiveX.
The only problem is that ActiveX is an executable code which can do
practically anything on the machine.

Because of that
1. Some users might have disbled the use of them on the pages (rare)
2. Browser will give a message first time it tries to load an ActiveX (once
it's loaded it will not prompt anymore. Even if you close the browser and
shutdown PC).

You can see that behaviour for example here
http://orgchart.com/products/orgpubl...charts/gen.htm
It will prompt and if you say "yes" it will work.

Anyway depending on your visitiors ActiveX might be an acceptable solution
or not.
Flash is ActiveX for example.

George.

"Mauro Ciaccio" <ma*********@devdex.com> wrote in message
news:e7**************@TK2MSFTNGP11.phx.gbl...

Hi,

thanks for the reply. The problem with ActiveX controls is (so I'm told)
that they create problems when trying to access servers across
firewalls. Is that so and is there any way around the problem?

Thanks,

Mauro


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 18 '05 #4
You're absolutely right in that there is no "technical" problem in using
ActiveX behind a firewall.

But I think the key to the problem lies in your final sentence

"Anyway depending on your visitiors ActiveX might be an acceptable
solution or not."

Some of our clients do not ABSOLUTELY want to use ActiveX controls
behind their firewall because that is their company's policy. As a
result we are constrained in having to provide a solution that does not
use ActiveX.

Thanks for the clarification,

Mauro


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 18 '05 #5
Then you out of options.

The only way you can do it is ActiveX or Java Applet(which runs with more
permissions than usual applet - andis basically the same as having ActiveX
but it's written on Java).

Other than that i can not come up with anything that will let you upload
folder.

George.

"Mauro Ciaccio" <ma*********@devdex.com> wrote in message
news:eD**************@tk2msftngp13.phx.gbl...
You're absolutely right in that there is no "technical" problem in using
ActiveX behind a firewall.

But I think the key to the problem lies in your final sentence

"Anyway depending on your visitiors ActiveX might be an acceptable
solution or not."

Some of our clients do not ABSOLUTELY want to use ActiveX controls
behind their firewall because that is their company's policy. As a
result we are constrained in having to provide a solution that does not
use ActiveX.

Thanks for the clarification,

Mauro


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 18 '05 #6

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

Similar topics

2
by: Six | last post by:
Hi, I need some assistance again... I have a simple upload form from manual that goes like this: <form enctype="multipart/form-data" action="list.php" method="POST"> <input type="hidden"...
0
by: wym | last post by:
I have written a web service that provides the following methods: UploadFile SetNTFSSecurity Their purpose is to allow a user to Upload a file to a shared folder with "Everyone" as permission...
2
by: D. Shane Fowlkes | last post by:
I'm about to build in some functionality where my client's staff can do some kind of basic upload to a folder or series of folders on our web server and allow authenticated users to know the UID...
13
by: Sky Sigal | last post by:
I have created an IHttpHandler that waits for uploads as attachments for a webmail interface, and saves it to a directory that is defined in config.xml. My question is the following: assuming...
2
by: barry | last post by:
Hi Using VS.NET 2003 whenever i used to update a project and build and Test, i would upload *.DLL, *.ASPX, *.HTML files to my website. Has this changed with VS.NET 2005 , i dont see any .DLL...
3
by: Kimera.Kimera | last post by:
I'm trying to write a program in VB.net 2003 that basically deletes all files, folders, sub-folders and sub-sub folders (etc). The program is simply for deleting the Windows/Temp folder contents,...
44
by: badvoc | last post by:
Hi to all, Firstly I must state my knowledge of php is limited but I am a quick learner. I have taken on the task of finishing a friends website due to his untimely passing and have hit a problem...
1
pezholio
by: pezholio | last post by:
Hi, It seems that every time I put together a new script to upload a file I always have problems, here's the latest one: I've got a form with two file input fields, when I submit the form,...
1
by: =?Utf-8?B?UVNJRGV2ZWxvcGVy?= | last post by:
Using .NET 2.0 is it more efficient to copy files to a single folder versus spreading them across multiple folders. For instance if we have 100,000 files to be copied, Do we copy all of them to...
0
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,...
0
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,...
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...
1
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
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...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
muto222
php
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.