C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Resources » Articles » .NET Framework »

How to upload a file with maximum size (MB)


Posted Date: 09 Nov 2004    Resource Type: Articles    Category: .NET Framework
Author: S.M.Member Level: Silver    
Rating: 1 out of 5Points: 5



File upload in Asp.Net pages,you have to care about these things,


for ex. You need to upload a file with more than 4MB.
If u upload this size file,the uploading process will take more time and
finally,the browser will show this error "The page cannot be displayed".
So, u can't upload files with these size.

The uploading process will accept upto 4MB for file uploading.
if u want to upload more than 4MB, u have to include this tag in a
web.config file,


<system.web>
<httpRuntime maxRequestLength="61440" />
</system.web>



put this code inside system.web tag.

you can specify the maximum file size in this tag -->"61440" in KB.

Microsoft recommended size for file uploading is upto 20MB.

But,you can upload more than this size.

I tried one MS-Word doc with 53MB.The file uploaded successfully.


Hope,this article will help u peoples,


Feel free to type comments.

Regards.....






Responses


No responses found. Be the first to respond and make money from revenue sharing program.

Feedbacks      
Popular Tags   What are tags ?   Search Tags  
Sign In to add tags.
(No tags found.)

Post Feedback


This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
You must Sign In to post a response.
Next Resource: Building .NET Applications using NAnt
Previous Resource: Building custom user control in .Net - Part I
Return to Discussion Resource Index
Post New Resource
Category: .NET Framework


Post resources and earn money!
 
More Resources



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use