IT Community - Software Programming, Web Development and Technical Support

File Upload Size Limit

This is a discussion on File Upload Size Limit within the ASP and ASP.NET Programming forums, part of the Web Development category; Hi I tyrd to upload files using HttpPostedFile. Seems like there's a limit on the size of the file (...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Web Development > ASP and ASP.NET Programming

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 08-25-2007, 03:07 AM
KiruthikaSambandam KiruthikaSambandam is offline
D-Web Analyst
 
Join Date: Aug 2007
Posts: 332
KiruthikaSambandam is on a distinguished road
Default File Upload Size Limit

Hi

I tyrd to upload files using HttpPostedFile.

Seems like there's a limit on the size of the file (Request?) of around
5Mb.

Anyone found a way to work around this, or increase the limit,

When I try a bigger file I get a DNS error in IE



Would seem to be some sort of server configuration issue.

Cheers

Kirthika
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 08-25-2007, 03:28 AM
KiruthikaSambandam KiruthikaSambandam is offline
D-Web Analyst
 
Join Date: Aug 2007
Posts: 332
KiruthikaSambandam is on a distinguished road
Default Re: File Upload Size Limit

Hi All


i got answer For File Upload Size Limit in DotNet

By default ASP.NET limits the size of file uploads to
around 4Mb. This is to prevent denial of service attacks where people try to
bring down a server by launching massive files at it.
To enable support for larger files, i was added the following
configuration setting value to my apps (or machine's web.config file):

<configuration>
<system.web>
<httpRuntime maxRequestLength="4096" />
</system.web>
</configuration>

Note that the "4096" value above is the size in Kbytes that is configured
out of the box (in machine.config).

[We can change it to be whatever size we want.]

Thnx
Kiruthika
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 08-25-2007, 03:50 AM
Sundaram Sundaram is offline
D-Web Sr.Programmer
 
Join Date: Mar 2007
Location: chennai
Posts: 117
Sundaram is on a distinguished road
Send a message via MSN to Sundaram Send a message via Yahoo to Sundaram
Default Re: File Upload Size Limit

Hi kiruthika,

Can you clear me maximum length "maxRequestLength"..?its is limit or infinitive ...? maximum how many GB uploaded using this "HttpPostedFile" ..?
Regards,

M.Sundaram.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 08-25-2007, 05:09 AM
KiruthikaSambandam KiruthikaSambandam is offline
D-Web Analyst
 
Join Date: Aug 2007
Posts: 332
KiruthikaSambandam is on a distinguished road
Default Re: File Upload Size Limit

Hi,
Read this Link How to upload a file to a Web server in ASP.NET by using Visual Basic .NET for more detail about file upload.

thx
Kirthika
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 08-26-2007, 11:08 PM
S.Vinothkumar S.Vinothkumar is offline
D-Web Genius
 
Join Date: May 2007
Posts: 1,061
S.Vinothkumar is on a distinguished road
Wink Re: File Upload Size Limit

Hi there,


maxRequestLength attribute indicates the maximum file upload size supported by ASP.NET.

This limit can be used to prevent (DOS) denial of service attacks caused by users posting large files to the server.

The size specified is in kilobytes. The default is "4096" (4 MB). Max value is "1048576" (1 GB) for .NET Framework 1.0 and 1.1 and "2097151" (2 GB) for .NET Framework 2.0.
__________________
S.VinothkumaR
Behind me is infinite power,
Before me is Endless Possibility,
Around me is Boundless Opportunity,
Why should I fear!
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 08-26-2007, 11:49 PM
Sundaram Sundaram is offline
D-Web Sr.Programmer
 
Join Date: Mar 2007
Location: chennai
Posts: 117
Sundaram is on a distinguished road
Send a message via MSN to Sundaram Send a message via Yahoo to Sundaram
Default Re: File Upload Size Limit

Hi
Its really helpful for me......THANKS.
Can you Explain "denial of service" ..?


Regards,

M.Sundaram
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 08-27-2007, 12:10 AM
S.Vinothkumar S.Vinothkumar is offline
D-Web Genius
 
Join Date: May 2007
Posts: 1,061
S.Vinothkumar is on a distinguished road
Wink Re: File Upload Size Limit

Hi,

Result of any action or series of actions that prevents any part of an information system from functioning.

is a hacker attack designed to shut down or overwhelm a system, such as a Web server or authentication server.

An attack on a network designed to render it - or an Internet resource - unavailable. The target may be an organisation's e-mail services or its website.
__________________
S.VinothkumaR
Behind me is infinite power,
Before me is Endless Possibility,
Around me is Boundless Opportunity,
Why should I fear!
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 08-27-2007, 12:29 AM
mobilegeek mobilegeek is offline
D-Web Analyst
 
Join Date: Jun 2007
Posts: 205
mobilegeek is on a distinguished road
Wink Re: File Upload Size Limit

A denial-of-service attack (also, DoS attack) is an attack on a computer system or network that causes a loss of service to users, typically the loss of network connectivity and services by consuming the bandwidth of the victim network or overloading the computational resources of the victim system.


that's it...guy...
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 09-26-2007, 10:37 PM
muthu muthu is offline
D-Web Trainee
 
Join Date: Sep 2007
Posts: 5
muthu is on a distinguished road
Default Re: File Upload Size Limit

hi.,

BULK INSERT OrdersBulk
FROM 'c:\file.txt'
WITH
(
FIELDTERMINATOR = ',',
ROWTERMINATOR = '\n'
)

i tried this procedure to upload 8MB text file to my sql server

its works fine..,
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 09-27-2007, 03:16 AM
accer accer is offline
D-Web Sr.Programmer
 
Join Date: Sep 2007
Posts: 175
accer is on a distinguished road
Default Re: File Upload Size Limit

Thanks! That last tip really helped me out a lot. It worked perfectly the first time for me.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
upload file Kirubhananth ASP and ASP.NET Programming 5 03-13-2008 03:19 AM
How can I extract just the extension file name from a forms file upload field? itbarota HTML, CSS and Javascript Coding Techniques 1 10-22-2007 08:32 AM
How to Upload a file using Ajax? ramkumaraol PHP Programming 1 08-06-2007 08:58 AM
Info: File Upload using Perl raj Perl 0 07-23-2007 06:00 AM
How to Minimize PNG file size for mobile appl..? itbarota Mobile Software Development 1 07-21-2007 01:43 AM


All times are GMT -7. The time now is 12:28 PM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0