File Upload Without Caching

  • Thread starter Thread starter Tim Haughton
  • Start date Start date
T

Tim Haughton

Here's the thing:

1) I need to upload a file to a web server.
2) The file could be as large as 800meg.
3) The file needs to be uploaded by a HTTP-POST

We currently have this working OK, but there's a problem with large
files. The file is loaded into memory by the server before the aspx
page can save it to the disk location. Is there a way of grabbing the
raw stream and piping it straight to disk?

Cheers,

Tim Haughton
 
You shouldn't upload files biggers than ~10Meg through HTTP use FTP!
 
Daniel said:
You shouldn't upload files biggers than ~10Meg through HTTP use FTP!

Too bad that FTP isn't very welcome at the next best firewall. And BITS
works on top of HTTP ;-)

But doing this with plain ASP.NET as the OP tried won't work, as the
implementation buffers the entire file in memory before passing it on.

Cheers,
 

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

Back
Top