473,320 Members | 2,112 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

uploading a file

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
Jul 19 '05 #1
1 1971
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>
----------------------------------------------

"J. Marshall Latham" <ma******@networkip.net> wrote in message
news:uT*************@TK2MSFTNGP12.phx.gbl...
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

Jul 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: dickiedyce | last post by:
Hi there. I've spent the weekend getting ever more frustrated, trying to get an upload file function working on a website. The site is hosted by a company called oneandone. They're using PHP...
9
by: R. Rajesh Jeba Anbiah | last post by:
Q: How should I handle file upload? A: File uploading requires HTML form of content type "multipart/form-data". The file content has to be POSTed/submitted via the form and once the file is...
5
by: Kevin Ollivier | last post by:
Hi all, I've come across a problem that has me stumped, and I thought I'd send a message to the gurus to see if this makes sense to anyone else. =) Basically, I'm trying to upload a series of...
1
by: Jonathan | last post by:
Hi everyone, I have a problem with the file uploading in Asp.Net and I have read a lot on forums on this but never found an answer. Here is the problem: I know Asp.Net maximum Length for...
5
by: Ron Brennan | last post by:
Good afternoon. The entire task that I'm trying to achieve is to allow a user to browse and upload multiple files simultaneously, hiding the Browse button of <input> tags of type="file" and...
13
by: Sky Sigal | last post by:
I have created an IHttpHandler that waits for uploads as attachments for a webmail interface, and saves it to a directory that is defined in config.xml. My question is the following: assuming...
3
by: Jason Chu | last post by:
I've written a file uploading part of my application using the IHttpModule. So now, I don't have the memory problem of uploading something big. Problem: I can't find which function I have to...
5
by: Chris | last post by:
I have a meetings section I'm developing on our intranet. Using PHP/MySQL. Meeting info and Meeting docs reside on 2 related tables in the db. Users may want to upload anywhere from 1 to 10 or...
1
by: wenqiang7 | last post by:
I am encountering a very strang problem with file uploading in my ASP.Net page. When we try to upload certain file, we'll get an error msg of "Cannot find server or DNS Error". We are running...
3
ganesanji
by: ganesanji | last post by:
hi all, I have written a php coding for uploading a file to a specific folder or location in server which is a Linux server. I think the coding for file uploaing is correct. But it does not...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.