Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Snow lizard 36 posts 106 karma points
    Jan 30, 2013 @ 10:14
    Snow lizard
    0

    Increase the upload limit for files Error

    Hi, I'm trying to increase the upload limit for files in Umbraco. I have tried to add this line to the <system.web> section:

    <httpRuntime  maxRequestLength="102400" executionTimeout="360"/>

    But when I do I get an error

    500 - Internal server error.

    When it try to view the site. Does anyone know how to fix this problem?

    Thanks in advance for any help

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Jan 30, 2013 @ 12:28
    Jan Skovgaard
    0

    Hi alan and welcome to our :)

    If I remember correctly the value entered in the attributes can cause this error if they're not set properly.

    I my web.config I have set the limit to 0,5GB.

    Try this <httpRuntime requestValidationMode="2.0" maxRequestLength="524288" executionTimeout="3600" />

    (Also note that you have set a timeout of only 360 seconds - in the above it's an hour).

    Hope this helps.

    Cheers,
    Jan 

     

  • Snow lizard 36 posts 106 karma points
    Jan 30, 2013 @ 13:44
    Snow lizard
    0

    Thanks Jan. I found the issue. The was another httpRuntime  in the web.config so I just added maxRequestLength and executionTimeout to it it worked perfectly.

    Cheers

    Alan

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Jan 31, 2013 @ 22:24
    Jan Skovgaard
    0

    Hi Alan

    Ah yes of course - it's a classic when getting error 500 after having modified the web.config file :)

    Remember to mark the post as solved so others can go straight to the solution if they come across the same problem.

    Cheers,
    Jan 

Please Sign in or register to post replies

Write your reply to:

Draft