Click here to Skip to main content
15,895,084 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear Memebers,

In my web page i am using three fileupload controls. On click of add button ineed to copy these three file to my server. it not working if i upload one file then its working properly...

this is the code i am using to copy file to server
C#
if (fuLanguage.HasFile)
{
    fuLanguage.SaveAs(ServicePath + @"\" + LaguagePrompt);
}
if (fuCostPrompt.HasFile)
{
    fuCostPrompt.SaveAs(ServicePath + @"\" + CostPrompt);
}
if (fuGreetingPrompt.HasFile)
{
    fuGreetingPrompt.SaveAs(ServicePath + @"\" + GreetingPrompt);
}

Please provide me your valuable suggestion.

Thanks & Regards
Developer
Posted
Updated 7-Apr-11 0:25am
v2
Comments
shakil0304003 7-Apr-11 6:00am    
Need more code for give suggestion.
Sunasara Imdadhusen 7-Apr-11 6:25am    
Added code formatting!!
Sunasara Imdadhusen 7-Apr-11 6:27am    
Is there any error?

Add a tag in web.config file

<httpRuntime

executionTimeout="200"

maxRequestLength="8192"

requestLengthDiskThreshold="256"

useFullyQualifiedRedirectUrl="false"

minFreeThreads="8"

minLocalRequestFreeThreads="4"

appRequestQueueLimit="5000"

enableKernelOutputCache="true"

enableVersionHeader="true"

requireRootedSaveAsPath="true"

enable="true"

shutdownTimeout="90"

delayNotificationTimeout="5"

waitChangeNotification="0"

maxWaitChangeNotification="0"

enableHeaderChecking="true"

sendCacheControlHeader="true"

apartmentThreading="false"/>
 
Share this answer
 
Well, it sounds like the size of the files are creating an issue. Though had you put up the final error or result in detail we could have suggested you more appropriately.

Looks like, MaxRequestLength needs to be increased.

Have a look at this:
http://msdn.microsoft.com/en-us/library/system.web.configuration.httpruntimesection.maxrequestlength.aspx[^]
http://msdn.microsoft.com/en-us/library/e1f13641%28v=VS.100%29.aspx[^]
 
Share this answer
 
v2

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