Issue: uploading .pdf file in Cute Editor for .NET version 5

Last post 05-17-2006, 3:15 PM by Adam. 1 replies.
Sort Posts: Previous Next
  •  05-17-2006, 3:03 PM 19255

    Issue: uploading .pdf file in Cute Editor for .NET version 5

    Hi Adam,

    In the security policy file (default.config, admin.config and guest.config)

    I had set the value of max file file upload size as:
    <security name="MaxDocumentFolderSize">102400</security>

    And in my program also I had set it as:
    Editor1.Setting["security:MaxDocumentSize"] = "102400";

    My issue is that when I am loading .pdf file of 10 kb it uploads successfully.
     
    But when I tried uploading .pdf file of 4542 kb it is giving me following error :

    Maximum request length exceeded.
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack track for more information about the error and where it originated in the code.
    Exception Detail: System.Web.HttpException: Maximum requested length exceeded.

    Please help me out.
     
    Regards,
    Gurpreet.
  •  05-17-2006, 3:15 PM 19257 in reply to 19255

    Re: Issue: uploading .pdf file in Cute Editor for .NET version 5

    Gurpreet,
     
    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

    Filed under:
View as RSS news feed in XML