I know I can change the upload limit using my web.config fle but I'm just wondering is that the upload limit per file or the request as a whole?
Right now, I have my upload limit at 15MB but from the same page I can upload multiple files. If I upload mulitple files that as one are less than 15MB but as a whole more than 15MB would that generate a file request length exceeded exception?
The whole request is counted, even the Page size. But thats just a few Kilo Bytes, so its not kept in mind! The File size takes most of the request size.
I am sure it will create an execption. As the request as a whole will take the total size of the Request. So if altogether they exceed in size of 15MB. Thats gonna give an excetion.
Read more of my web development posts on my website. Thank you.
There is no "page" in a request. There are headers an possibly a payload (in the case of a POST request). The response contains the "page" (if it is of type text/html).
Member
445 Points
176 Posts
File upload limit question
Aug 11, 2013 10:17 PM|mhcodner|LINK
I know I can change the upload limit using my web.config fle but I'm just wondering is that the upload limit per file or the request as a whole?
Right now, I have my upload limit at 15MB but from the same page I can upload multiple files. If I upload mulitple files that as one are less than 15MB but as a whole more than 15MB would that generate a file request length exceeded exception?
All-Star
52513 Points
15668 Posts
Re: File upload limit question
Aug 11, 2013 10:32 PM|oned_gk|LINK
Try like this
Suwandi - Non Graduate Programmer
All-Star
194004 Points
28027 Posts
Moderator
Re: File upload limit question
Aug 12, 2013 05:56 AM|Mikesdotnetting|LINK
The limit is imposed on the Request, not individual parts of it.
Yes, it would generate the HttpException. You can test this for yourself easily enough.
Contributor
4010 Points
1926 Posts
Re: File upload limit question
Aug 12, 2013 06:21 AM|Afzaal.Ahmad.Zeeshan|LINK
The whole request is counted, even the Page size. But thats just a few Kilo Bytes, so its not kept in mind! The File size takes most of the request size.
I am sure it will create an execption. As the request as a whole will take the total size of the Request. So if altogether they exceed in size of 15MB. Thats gonna give an excetion.
Member
445 Points
176 Posts
Re: File upload limit question
Aug 12, 2013 06:49 AM|mhcodner|LINK
Ok, thank you. I couldn't test for myself because I am away from my computer.
All-Star
194004 Points
28027 Posts
Moderator
Re: File upload limit question
Aug 12, 2013 07:14 AM|Mikesdotnetting|LINK
Huh? What page?
Contributor
4010 Points
1926 Posts
Re: File upload limit question
Aug 12, 2013 07:28 AM|Afzaal.Ahmad.Zeeshan|LINK
I am sure if you load a page of 1KB for 1024 times. I will use 1MB Bandwidth. So in this case it does mean that the page also uses some of the size!
Isn't it this way?
All-Star
194004 Points
28027 Posts
Moderator
Re: File upload limit question
Aug 12, 2013 07:44 AM|Mikesdotnetting|LINK
There is no "page" in a request. There are headers an possibly a payload (in the case of a POST request). The response contains the "page" (if it is of type text/html).
Contributor
4010 Points
1926 Posts
Re: File upload limit question
Aug 12, 2013 09:07 AM|Afzaal.Ahmad.Zeeshan|LINK
So, the page is only a load on Bandwidth, but not on Http Requests. In this case, the Request will only have the data from the form! Right?
All-Star
194004 Points
28027 Posts
Moderator
Re: File upload limit question
Aug 12, 2013 03:46 PM|Mikesdotnetting|LINK
An HTTP Request consists of headers, form data, cookies, querystrings and client certificates.
Contributor
4010 Points
1926 Posts
Re: File upload limit question
Aug 12, 2013 05:27 PM|Afzaal.Ahmad.Zeeshan|LINK
Can I get a link for full information about Http Requests?
All-Star
194004 Points
28027 Posts
Moderator
Re: File upload limit question
Aug 13, 2013 04:29 AM|Mikesdotnetting|LINK
Here's the documentation: http://msdn.microsoft.com/en-us/library/system.web.httprequest.aspx