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

  • Home
  • SEARCH
  • 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 8114553
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T03:10:52+00:00 2026-06-06T03:10:52+00:00

Getting ERR_CONNECTION_RESET after more or less 2 minutes of uploading a rather big file

  • 0

Getting ERR_CONNECTION_RESET after more or less 2 minutes of uploading a rather big file (90 MB) through asp.net fileupload control.

Testing this on a shared host environment so I don’t know exactly what policies are enforced on me.

web.config settings are sufficient I think:

 <httpRuntime requestValidationMode="2.0" maxRequestLength="1000000" executionTimeout="45000" />

Should I be looking at other async file-upload controls? Am I missing a web.config setting? Is the upload control simply not sufficient for large files on slow connections?

  • 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-06-06T03:10:54+00:00Added an answer on June 6, 2026 at 3:10 am

    There can be a number of reasons why the connection is reset and upping the max request length works to a point but you are right about looking into async file uploaders. The most important part is using one which “chunks” the files into smaller pieces and so avoids request limits etc. I have had the best experience with plupload:

    http://www.plupload.com/

    Here is some code for receiving the files (this is MVC but you can refactor to use a handler in .NET classic):

           [HttpPost]            
            public ActionResult UploadImage(int? chunk, int? chunks, string name)
            {
                var fileData = Request.Files[0];
    
                if (fileData != null && fileData.ContentLength > 0)
                {
                    var path = GetTempImagePath(name);
                    fileSystem.EnsureDirectoryExistsForFile(path);
    
                    // Create or append the current chunk of file.
                    using (var fs = new FileStream(path, chunk == 0 ? FileMode.Create : FileMode.Append))
                    {
                        var buffer = new byte[fileData.InputStream.Length];
                        fileData.InputStream.Read(buffer, 0, buffer.Length);
                        fs.Write(buffer, 0, buffer.Length);
                    }
                }
    
                return Content("Chunk uploaded", "text/plain");
            }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Getting 401 errors when trying to use ASP.NET back end in load balanced environment
I am developing a new site in asp.net (c#) and sometimes I get an
After getting an Uncaught Error: NOT_FOUND_ERR: DOM Exception 8, and having seen a few
I am able to export mysql to csv file but i am not getting
I've got a node.js script that loads an XML file. It loops through each
After getting no answer to my last question, I reformulated the thing to its
I am using kSoap2 for accessing soap web services. I am getting java.net.connectException while
Using this code var html='<div class=somediv></div>'; var target=document.getElementById('contentArea'); target.appendChild(html); I'm getting Uncaught Error: NOT_FOUND_ERR:
Getting my head around Android, I've sort of trouble understanding support for multiple devices.
Getting extremely confused with an adminhtml module i'm trying to write! Effectively I have

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.