Error uploading file in Media Options
nwahlberg
Posted: Monday, November 10, 2008 6:21:43 PM

Rank: Devotee

Joined: 10/20/2008
Posts: 83
Location: USA
Hi, I am trying to upload a PDF file hat is 5mb+ in v4 Beta 2. When I do I get the following error in the UI:

Code:
Maximum request length exceeded.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Web.HttpException: Maximum request length exceeded.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. 


This doesn't necessarily look Umbraco related, but figured I would post to see if someone had seem anything similar.

Thanks in advance.

Best,
Nik

Level 1 Certified / www.scandiaconsulting.com
ascendinternet
Posted: Monday, November 10, 2008 6:39:18 PM

Rank: Aficionado

Joined: 11/16/2007
Posts: 172
Location: Surrey, UK
There is a 4Gb (I think) limit defined / assumed (standard .Net I think). You can override it with a web.config change -

Code:

<system.web>
    <httpRuntime maxRequestLength="1048576" executionTimeout="3600" />
    ....

That makes the max upload size 1Gb and the timeout 1 hour.

Gordon Saxby | Ascend Internet Limited | Web Site Development. Web Site Hosting (inc Umbraco)
Dirk
Posted: Monday, November 10, 2008 6:39:26 PM

Rank: Umbracoholic

Joined: 9/27/2007
Posts: 1,123
Location: Belgium
Nik,

Asp.net does not like big uploads by default, but it can be overriden by a specific settings in the web.config.

Here's a nice read-through on the subject.

http://weblogs.asp.net/jgalloway/archive/2008/01/08/large-file-uploads-in-asp-net.aspx

Regards,
/Dirk




level 1 & 2 certified - umbraco MVP 2008/2009 - umbraco blog at netaddicts.be - working on an integrated forum4umbraco
Dirk
Posted: Monday, November 10, 2008 6:40:55 PM

Rank: Umbracoholic

Joined: 9/27/2007
Posts: 1,123
Location: Belgium
Wow,

2 answers within 10 seconds. I think this forum ROCKS!

(Bit off topic, but whatever)

level 1 & 2 certified - umbraco MVP 2008/2009 - umbraco blog at netaddicts.be - working on an integrated forum4umbraco
nwahlberg
Posted: Monday, November 10, 2008 6:45:24 PM

Rank: Devotee

Joined: 10/20/2008
Posts: 83
Location: USA
Dirk wrote:
Nik,

Asp.net does not like big uploads by default, but it can be overriden by a specific settings in the web.config.

Here's a nice read-through on the subject.

http://weblogs.asp.net/jgalloway/archive/2008/01/08/large-file-uploads-in-asp-net.aspx

Regards,
/Dirk


Excellent, that was a nice primer on file uploads and .NET.

Thanks much.

-- Nik

Level 1 Certified / www.scandiaconsulting.com
nwahlberg
Posted: Monday, November 10, 2008 6:53:54 PM

Rank: Devotee

Joined: 10/20/2008
Posts: 83
Location: USA
Dirk wrote:
Wow,

2 answers within 10 seconds. I think this forum ROCKS!

(Bit off topic, but whatever)


I KNOW this forum rocks! It's crazy how fast answers get posted. Hats off to everyone who is dilligent about checking those 'Active Topics'!

Btw, problem solved!

Thanks,
Nik

Level 1 Certified / www.scandiaconsulting.com
Users browsing this topic
Guest


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.