max file sizes

Last post 09-20-2006, 2:28 PM by jjonesdtrt. 3 replies.
Sort Posts: Previous Next
  •  09-19-2006, 1:33 PM 22830

    max file sizes

    Greetings:

           I am having a lot of success with custom config settings (the tool will be quite useful when I've got it), but I have not been able to, as yet, set one thing...

    File sizes ("MaxMediaSize", etc.) - I've set that in my custom config xml, and it has had no effect on uploadable file size. Unfortunately, this runs afoul of the http handler (see error) for my current site config.

    Am I missing something? Thanks.

           Jeff


    Server Error in '/test' Application.

    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:
    n: Microsoft .NET Framework Version:1.1.4322.2300; ASP.NET Version:1.1.4322.2300

  •  09-19-2006, 2:05 PM 22834 in reply to 22830

    Re: max file sizes

    jjonesdtrt,
     
    Please check the following article:
     
     

    SYMPTOMS

    When you try to use the HtmlInputFile control to upload a large file, the file may not be uploaded.

    CAUSE

    This problem occurs because the default value for the maxRequestLength parameter in the <httpRuntime> section of the Machine.config file is 4096 (4 megabytes). As a result, files that are larger than this value are not uploaded by default.

    RESOLUTION

    To resolve this problem, use one of the following methods:
    In the Machine.config file, change the maxRequestLength attribute of the <httpRuntime> configuration section to a larger value. This change affects the whole computer.
    In the Web.config file, override the value of maxRequestLength for the application. For example, the following entry in Web.config allows files that are less than or equal to 8 megabytes (MB) to be uploaded:
    <httpRuntime maxRequestLength="8192" />
                


    .................
     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  09-19-2006, 4:42 PM 22835 in reply to 22834

    Re: max file sizes

    Adam:
           ...*sigh*... What I want is help setting the limits in Cute Editor's config so I don't bust through the 4 meg limit: That is, I've created a new security config XML file, set MaxMediaSize to 4000, referenced it in my page instance of Cute Editor, and MaxMediaSize is unaffected (it still shows 9.7 megs in the upload window, which I'm assuming is 10000). Other config changes I've made there (allowable filenames, allowable media types, etc.) are making it through, but not that.
           If you need me to copy in the parts of the XML, or the instance of the Cute Editor in my HTML, I'll be happy to.
           I'm finding that not all configs seem to work intuitively....for instance, booleans (true/false) work for turning off menu items, but the ShowBottomBar requires a string - "True" or "False" in quotes (that really messed with my head for a bit).

  •  09-20-2006, 2:28 PM 22865 in reply to 22835

    Re: max file sizes

    ...nevermind, code accomplished it, I let loose of the config file.
View as RSS news feed in XML