Copied to clipboard

Flag this post as spam?

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


  • Chris Wilson 100 posts 377 karma points
    Aug 11, 2015 @ 11:26
    Chris Wilson
    0

    Package does not work with Umbraco 7

    Type renders as a Label rather than an upload dialog.

    Is there a simpler / improved way to perform restricting functions in Umbraco 7?

    Cheers, Chris

  • Dennis Aaen 4457 posts 17970 karma points admin hq c-trib
    Aug 11, 2015 @ 19:16
    Dennis Aaen
    1

    Hi Chris,

    This is an old package, so it won´t work for Umbraco 7 But if you look in to the UmbracoSettings.config file in the config folder of your Umbraco installation and you are using Umbraco 7.2.x then you will see a section with this.

    <!-- These file types will not be allowed to be uploaded via the upload control for media and content -->
        <disallowedUploadFiles>ashx,aspx,ascx,config,cshtml,vbhtml,asmx,air,axd,swf,xml,html,htm,svg,php,htaccess</disallowedUploadFiles> 
    

    And for the change the size of the files that can be uploaded go to the web.config, and find these lines or add them.

    To increase the size allowed you need to edit the web.config in the root of the web application.

    <system.web>
         <httpRuntime maxRequestLength="32768" executionTimeout="300" />
    </system.web>
    

    This increases the max upload size to 32MB and increases the timeout.

    When working with IIS 7+, also requires adding requestFiltering under the system.webServer section:

    <system.web>
        <httpRuntimemaxRequestLength="204800"executionTimeout="99999"/>
    </system.web>
    <system.webServer>
        <security>
            <requestFiltering>
                <requestLimitsmaxAllowedContentLength="204800000"/>
            </requestFiltering>
        </security>
    </system.webServer>
    

    Hope this helps,

    /Dennis

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies