Uploading a large image

Last post 09-12-2005, 8:34 PM by Adam. 1 replies.
Sort Posts: Previous Next
  •  09-12-2005, 6:05 PM 10428

    Uploading a large image

    Using CuteEditor 5.0
     
    With image uploading allowed, size restriciton set to 640x640, maximum image size is 1500k, auto resize set to true.
     
    When selecting an image that is approximately 4,500 k, the image is correctly resized and uploaded successfully. Attempting to upload a larger file, approximately 12,000k does not get resized or alert any kind of error, but the upload fails and the insert iamge window is refreshed but the newly selected image is not there. You can see the page briefly goes to an asp.net error page, but so fast you cannot read it before it comes back to the insert image page.
     
    Do you know why this is happening?
  •  09-12-2005, 8:34 PM 10447 in reply to 10428

    Re: Uploading a large image

    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

View as RSS news feed in XML