Copied to clipboard

Flag this post as spam?

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


  • Laurence Gillian 600 posts 1219 karma points
    Oct 28, 2010 @ 17:44
    Laurence Gillian
    0

    IIS7 and Upload Limit

    Hello,

    Firstly super sweet package, lots of love for this! Its a really sweet way of getting files into Umbraco quickly, and really useful actually on the host server if you say need to quickly implement say a few gigabytes of data into Umbraco.

    However I'm having a little bit of a problem with the Upload limit. In IIS7 I'm adding a system.webServer entry which says the request limits maximum allowed content length is say 1gigabtye, however the Media Uploader tool does not seem to be responding to this and still defaulting at limiting at around 4Mb.

    What should I be doing?

     <system.webServer>
            <security>
                <requestFiltering>
                    <requestLimits maxAllowedContentLength="112428800"/>
                </requestFiltering>
            </security>
    </system.webServer>

    Thanks in advance and thanks for sharing such a valuable tool,

    Laurie 

  • Rich Green 2246 posts 4008 karma points
    Oct 28, 2010 @ 18:13
    Rich Green
    1

    Solution is in this post

    http://our.umbraco.org/forum/using/ui-questions/7441-Another-uploading-large-files-and-zip-files-issue

    The post with over 100 High Fives :)

    Rich

  • Laurence Gillian 600 posts 1219 karma points
    Oct 28, 2010 @ 18:20
    Laurence Gillian
    0

    Super sweet, but my next question then is why! (goes off to Google this and work out why).

    Its a bit of an issue if you can't just set that in the IIS7 web.config, but you have to run a command. But super super useful to know. 

    Thanks for the quick response! Laurie

  • Laurence Gillian 600 posts 1219 karma points
    Oct 28, 2010 @ 19:08
    Laurence Gillian
    0

    Sorry, the above is not the solution.

    You need a combination of editing the web.config file with;

     

    <system.webServer>
           
    <security>
               
    <requestFiltering>
                   
    <requestLimits maxAllowedContentLength="200000000"/>
               
    </requestFiltering>
           
    </security>
    </system.webServer>

     

    and also adding the maxRequestLength to the httpRuntime entry which is in system.web. e.g

    <httpRuntime requestValidationMode="2.0" maxRequestLength="200000000" />

    Hope that helps someone, also note Matt has mentioned this should be fixed in the next release! Lau

    (note the above is set to 2.0Gb )

     

     

  • Laurence Gillian 600 posts 1219 karma points
    Oct 28, 2010 @ 19:16
    Laurence Gillian
    0

    Another useful reference for general reading - http://forums.iis.net/t/1150009.aspx

  • Matt Brailsford 4124 posts 22215 karma points MVP 9x c-trib
    Nov 01, 2010 @ 10:58
    Matt Brailsford
    0

    Hey Guys,

    Just to let you know, the latest version (2.0.2), you can now conifgure this using the IIS7 requestLimits tag.

    Optionaly, if you only want to affect the DMU upload limits, you can also now set a DesktopMediaUploaderMaxRequestLength app setting to do just that.

    Cheers

    Matt

  • Rich Green 2246 posts 4008 karma points
    Mar 31, 2011 @ 13:58
    Rich Green
    0

    Hey,

    I'm getting an upload problem using DMU under 4.6.1

    Here's my WebConfig settings

        <httpRuntime requestValidationMode="2.0" maxRequestLength="200000000" />
     <system.webServer>
            <security>
                <requestFiltering>
                    <requestLimits maxAllowedContentLength="200000000"/>
                </requestFiltering>
            </security>
    </system.webserver>
    
    

    However a 600mb file gets cuts off (the status of DMU turns red)

    Do i need to set a 'DesktopMediaUploaderMaxRequestLength' setting, if so where does it go please and with what parameter?

    Cheers

    Rich

  • Matt Brailsford 4124 posts 22215 karma points MVP 9x c-trib
    Mar 31, 2011 @ 14:15
    Matt Brailsford
    0

    Hey Rich,

    If you have set the maxRequestLength attribute, you should need to set the DesktopMediaUploaderMaxRequestLength, as it's just an overide really. Best I could suggest would be to check your timeout on the server as whilst it may be allowed to upload 600mb, you connection might not be allowed to last long enough for it to upload. You might also want to try using a HTTP Traffic sniffer like Fiddler to see what the actual exception is behind the scenes.

    Matt

  • Rich Green 2246 posts 4008 karma points
    Apr 04, 2011 @ 12:34
    Rich Green
    1

    Hey Matt,

    Turns out I was missing a zero!

    Needed to be 2000000000 not 200000000 as the posts above

    For future ref:

     <httpRuntime requestValidationMode="2.0" maxRequestLength="2000000000" />
     <system.webServer>
            <security>
                <requestFiltering>
                    <requestLimits maxAllowedContentLength="2000000000"/>
                </requestFiltering>
            </security>
    </system.webserver>

    :)

    Rich 

     

  • Matt Brailsford 4124 posts 22215 karma points MVP 9x c-trib
    Apr 04, 2011 @ 12:45
    Matt Brailsford
    0

    lol, easy mistake to make (I still can't see the difference between the numbers =)

    Glad you managed to get it working.

    Matt

Please Sign in or register to post replies

Write your reply to:

Draft