Click here to Skip to main content
15,892,575 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
var lformdata = new FormData();
for (var i = 0, len = gattachemetfiles.length; i < len; i++) {
lformdata.append('files', gattachemetfiles[i]);
lformdata.append('text', 'sometext');
lformdata.append('filename', 'sometext ');
}
//above code to append files to formdata... i have attached 5 files and size is 20MB

//Ajax call
$.ajax({
type: 'post',
url: 'handler/FeedbackUploadhandler.ashx?name=FileUpload1&email=' + strEmail ,
secureuri: false,
dataType: 'json',
data: lformdata,
processData: false,
contentType: false,
complete: function (data) {},
success:function (data){},
error:function(msg){}
});

I can able to post below 15mb files successfully.. but when i try with above 15mb , its throwing error...
can anyone tell what is the pbm?...is this possible to post above 20 mb files?
Posted

1 solution

This is probably caused by the default limit of the request size.
You can configure this in you web.config through the maxRequestLength attribute.
 
Share this answer
 

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