Can we recursively upload files using standard asp.net?

  • Thread starter Thread starter AAaron123
  • Start date Start date
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?
 
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.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

Blog:
http://feeds.feedburner.com/GregoryBeamer

*************************************************
| Think outside the box! |
*************************************************
 
Thanks, I'm sure I would have spend significant time researching before I
realized I couldn't do it myself.
 
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.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

Blog:
http://feeds.feedburner.com/GregoryBeamer

*************************************************
| Think outside the box! |
*************************************************
 
Back
Top