uploading a file

J

J. Marshall Latham

I am trying to upload a file to the server from the client. I can
successfully upload a file that has a file size of less than 1 Kb, but my
program does not work if I try to upload a file with a size of 12.3 Mb. I
can't even get the debugger to work correctly if I try to upload the bigger
file. Can someone tell me why this problem would occur? Can you also
provide suggestions to rectify the situation? Can you send me a link to get
information about these kinds of restrictions or other restrictions where
you can do something in one situation but not in another like my file size
issue? Thank you for your help. I am a bit frustrated about this. I built
the app and tested with a small file (I didn't have access to the real
file), thought it worked, and then the testers come back saying that it is
broken. It is broken because I can't process the big file even though my
code worked fine with the smaller file. Again, thanks

JML
 
J

John Timney \(Microsoft MVP\)

The default setting siun machien config are about 4 meg. Look for a section
something liek this and increase accordingly.

<configuration>
<system.web>
<httpRuntime maxRequestLength="1024"
useFullyQualifiedRedirectUrl="true"
executionTimeout="500"/>
</system.web>
</configuration>

maxRequestLength is the maximum size, in KB, that can be uploaded, and you
cana lso set this in web.config specifically for your application so it
doers not affect the rest of the servers apps


--
Regards

John Timney (Microsoft ASP.NET MVP)
----------------------------------------------
<shameless_author_plug>
Professional .NET for Java Developers with C#
ISBN:1-861007-91-4
Professional Windows Forms
ISBN: 1861005547
Professional JSP 2nd Edition
ISBN: 1861004958
Professional JSP
ISBN: 1861003625
Beginning JSP Web Development
ISBN: 1861002092
</shameless_author_plug>
 

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

Similar Threads


Top