---
title: "Why do uploads fail while using an ASP.NET file upload control to upload large files?"  
description: "Why do uploads fail while using an ASP.NET file upload control to upload large files?"  
author: "Manasavi Rajpoot"  
published: 2010-11-17  
updated: 2010-11-18  
canonical: https://www.mindstick.com/forum/109/why-do-uploads-fail-while-using-an-asp-dot-net-file-upload-control-to-upload-large-files  
category: "asp.net"  
tags: ["asp.net"]  
reading_time: 1 minute  

---

# Why do uploads fail while using an ASP.NET file upload control to upload large files?

hi,\
please give the solution \
thanks in [advance](https://www.mindstick.com/blog/33258/jee-mains-and-jee-advance-exams)

## Replies

### Reply by Amit Singh

ASP.NET limits the size of file uploads for security purposes. The default size is 4 MB. This can be changed by modifying the maxRequestLength attribute of Machine.config's <httpRuntime> element.\
\


---

Original Source: https://www.mindstick.com/forum/109/why-do-uploads-fail-while-using-an-asp-dot-net-file-upload-control-to-upload-large-files

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
