Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
How can i upload file or more than 5mb by file upload?...My client has pdf files more than 5mb.
Any suggestion?
/fuji
Change the limit within your web.config
<httpRuntime maxRequestLength="1048576" executionTimeout="3600" />
change the maxRequestLength
Tom
Hi Fuji,
By default the limit for file upload in Asp.Net is 4Mb. You can override this in your web.config file, in the maxRequestLength attribute. For example, to allow 8Mb upload:
<system.web> <httpRuntime maxRequestLength="8192" ... />...</system.web>
Note that this is the length of the full request, including all form fields, viewstate etc.
Hope this helps.
Cheers,
Michael.
(Damn, just too slow to type ;-))
Thanks guys.
Tom I changed this line
<httpRuntime requestValidationMode="2.0" />
<httpRuntime maxRequestLength="8576" executionTimeout="3600" />
What will be the consequences of removing
requestValidationMode="2.0"
Hi Tom,
Leaving it means you want to revert to the validation behavior of Asp.Net 2.0 instead of the validation behavior of Asp.Net 4. YOu can find some info about this at this url: http://www.asp.net/learn/whitepapers/aspnet4/breaking-changes
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Limit for file upload
How can i upload file or more than 5mb by file upload?...My client has pdf files more than 5mb.
Any suggestion?
/fuji
Change the limit within your web.config
<httpRuntime
maxRequestLength="1048576"
executionTimeout="3600"
/>
change the maxRequestLength
Tom
Hi Fuji,
By default the limit for file upload in Asp.Net is 4Mb. You can override this in your web.config file, in the maxRequestLength attribute. For example, to allow 8Mb upload:
Note that this is the length of the full request, including all form fields, viewstate etc.
Hope this helps.
Cheers,
Michael.
(Damn, just too slow to type ;-))
Thanks guys.
Tom I changed this line
<httpRuntime maxRequestLength="8576" executionTimeout="3600" />
What will be the consequences of removing
Hi Tom,
Leaving it means you want to revert to the validation behavior of Asp.Net 2.0 instead of the validation behavior of Asp.Net 4. YOu can find some info about this at this url: http://www.asp.net/learn/whitepapers/aspnet4/breaking-changes
Cheers,
Michael.
is working on a reply...