Click here to Skip to main content
15,881,803 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi ,
I am uploading image in my project using httpposted file
but I am getting Timeout exception .my code is
C#
var current = System.Web.HttpContext.Current;
if (current != null)
{
    var files = current.Request.Files;

    if (files != null && files.Count > 0)
    {
        var file = files[0];
        MediaContent content = new MediaContent();
        content.StreamFileData = file.InputStream;
        content.FileName = file.FileName;
        content.ContentType = file.ContentType;
}

please help .thanks in advance
Posted
Updated 10-Dec-14 23:08pm
v2
Comments
See http://stackoverflow.com/a/9791594/1099247
Praveen Kumar Upadhyay 11-Dec-14 5:18am    
increase the timeout, very simple.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900