Can we recursively upload files using standard asp.net?

A

AAaron123

I know about the <input type=file> element and the associated server
control.

But I think that requires the user to select each file to upload.

I'd like to upload a complete folder of files.

Even sub folders recursively if possible.

I got lots of Google hits that are close but not what I'm asking here.

The best scenario would be for the user to pick a folder and then the entire
folder and subfolder be uploaded to the server.

I believe there are apps that do this but wonder if it is possible to do it
using markup and vb/c#.

Can we recursively upload files using standard asp.net?
 
C

Cowboy \(Gregory A. Beamer\)

No.

The problem here is uploads, using standard HTTP, are sent as part of the
Request stream. The standard model is Request/Response/Dump. When you
reconnect, the server is clueless who you are until it rips through headers,
cookies, etc. This is called stateless communication. In web programming, we
fake state with session cookies, etc.

To upload * from directory, you need two way communication, not just
request/response, as the server has to state "finished with this one" and
the client queue up the next file.

I would buy the component that does this, if it is your requirement.
 
A

AAaron123

Thanks, I'm sure I would have spend significant time researching before I
realized I couldn't do it myself.
 
A

AAaron123

Thanks for the explanation


Cowboy (Gregory A. Beamer) said:
No.

The problem here is uploads, using standard HTTP, are sent as part of the
Request stream. The standard model is Request/Response/Dump. When you
reconnect, the server is clueless who you are until it rips through
headers, cookies, etc. This is called stateless communication. In web
programming, we fake state with session cookies, etc.

To upload * from directory, you need two way communication, not just
request/response, as the server has to state "finished with this one" and
the client queue up the next file.

I would buy the component that does this, if it is your requirement.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,014
Latest member
BiancaFix3

Latest Threads

Top