SaaS CMS has officially launched! Learn more now.

Uploading a file larger than 30MB fails


I found out that trying to upload a file larger than 30Mb fails today. Reproduced it in IE/FF and Chrome, so it must be a server-side limitation. The maxRequestLength is set to around 1Gb in web.config, unchanged default setting from CMS7 core installation. I'm having this issue both locally IIS8 / Win8 and on IIS7 / Win Serv. 2008 R2.

I can't find any documented limitation for file uploads, so i guess this is a bug?

I could probably get around this using Webdav or a VirtualPathNonUnifiedProvider, but that's far from ideal.

May 14, 2013 20:02

Could it be maxRequestLength for the specific location path as well? Have had problem with this before and i think I added it both for location path, system.webserver and system.web. but might be a bug as well :)

May 14, 2013 20:26

Could it be that you also have to set maxAllowedContentLength as well?

Edited, May 14, 2013 20:48

You are correct, I added this for location path secure/UI:

          <requestLimits maxAllowedContentLength="1048576000" />

I guess it's a bug in the default setup of web.config then :) Thanks a lot!

May 14, 2013 20:58

Yup, just figured it out Arild.

May 14, 2013 20:58

Hi all, and thank you for sharing this configuration setting! I've added a section about it under asset management in the Developer Guide of EPiServer CMS.

Jan 30, 2014 9:37
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.