Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7631551
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T06:22:59+00:00 2026-05-31T06:22:59+00:00

I need a way to upload large files (50+ MB) in my .net mvc3

  • 0

I need a way to upload large files (50+ MB) in my .net mvc3 website (hosted on Amazon). After trying to upload a large zip file (36.9MB) FireFox shows “The connection was reset” screen and FireBug shows “Aborted” under status.

Any ideas on how I could solve it?

Controller:

private void SaveFile(HttpPostedFileBase uploadedFile)
{
    using (var file = System.IO.File.Create(Server.MapPath("/uploads/" + uploadedFile.FileName))
        uploadedFile.InputStream.CopyTo(file);
}

Web.config:

  <system.web>
    <httpRuntime maxRequestLength="56320" executionTimeout="1500"/>
</system.web>

  <system.webServer>
    <security>
      <requestFiltering>
        <requestLimits maxAllowedContentLength= "10485760"/>
      </requestFiltering>
    </security>
  </system.webServer>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T06:23:01+00:00Added an answer on May 31, 2026 at 6:23 am

    The maxAllowedContentLength property is in bytes:

    <requestLimits maxAllowedContentLength= "10485760"/>
    

    10485760 bytes = 10MB. So if you try to upload a file that is larger than 10MB you will fail.

    Be consistent between your maxRequestLength which is in KB:

    <system.web>
        <!-- Limit file uploads to 55MB -->
        <httpRuntime maxRequestLength="56320" executionTimeout="1500"/>
    </system.web>
    

    which indicates a limit of 55MB and your requestLimits. Like this:

    <system.webServer>
        <security>
            <requestFiltering>
                <!-- Limit file uploads to 55MB -->
                <requestLimits maxAllowedContentLength="57671680"/>
            </requestFiltering>
        </security>
    </system.webServer>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need a way to upload large files (600 mb to 4 gb) in
So basically I need to upload large files, preferably up to 8GB. I'm limited
I'm trying to upload large files with php to an ftp server. I can
I currently need to upload large files from an iDevice to a server API.
I need a way to write over lines in a specific file. As it
I need a way to store application-level data (i.e. cross user sessions) in ASP.NET.
I'd need a solution like AppFabric to store large files (up to 500 MB)
I'm working on the following bash script that I need to upload specific files
I have a large directory which I need to upload to a new host's
I need to be able to upload several files to a database, and associate

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.