uploading files to a web service

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
 
S

Steven Cheng[MSFT]

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
 

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

Top