uploading files to a web service

  • Thread starter Thread starter Jim
  • Start date Start date
J

Jim

Hello,

I need to create a web service that I can upload files to via a client
browser. These files need to be relatively large (20 - 100 megs). I've tried
making a simple asp.net file upload service using HtmlInputFile, but it
always fails with large files. I can't seem to figure out how to make it
support larger file sizes either. Perhaps I'm using the wrong approach. Does
anyone have any ideas?

Thank you,

-Jim
 
Hi Jim,

Glad that you've figured out the problem. Yes, the HttpRuntime element in
the machine.config file controls
many of the web appliation's runtime parameters. The problem you met is
caused by the default "maxRequestLimit" which is set as 4096 bytes. And
here is another tech article in MSDN which discussing on using the
htmlinputfile control
to implement file upload. I believe it'll also be helpful:

#Uploading Files Using the File Field Control
http://msdn.microsoft.com/asp.net/default.aspx?pull=/library/en-us/dnaspp/ht
ml/aspnet-fileupload.asp


Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx
 
Back
Top