Copied to clipboard

Flag this post as spam?

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


  • Jaison 8 posts 79 karma points
    Jun 10, 2024 @ 10:30
    Jaison
    0

    not able to upload Image files from Umbraco Backoffice - Umbraco 7

    Hi,

    We recently received comments from one of our clients that they were not able to upload images from the Umbraco 7 backoffice.

    We got the below from the Trace logs, when the client had attempted to upload the images. As a matter of fact when we tried the same activity from our end, it was observed that we were able to upload all the images.

    As per the various sources on internet we tried to increase the executionTimeout, requestmaxlength etc but it did not work for the client.

    Can anyone help on this.

    +++++

    Unhandled controller exception occurred
    System.IO.IOException: Error reading MIME multipart body part. ---> System.Web.HttpException: The client disconnected.
       at System.Web.Hosting.IIS7WorkerRequest.BeginRead(Byte[] buffer, Int32 offset, Int32 count, AsyncCallback callback, Object state)
       at System.Web.HttpBufferlessInputStream.BeginRead(Byte[] buffer, Int32 offset, Int32 count, AsyncCallback callback, Object state)
       at System.IO.Stream.<>c.

    ++++++

    Any help appreciated.

    Thanks

  • Marcio Goularte 388 posts 1360 karma points
    Jun 10, 2024 @ 12:34
    Marcio Goularte
    0

    This is probably related to the size of the files. Change these settings in web.config and see if it helps. This increases request length to 100MB. Do it according to your needs

    <system.web>
     <httpRuntime maxRequestLength="100000" />
    </system.web>
    
    <system.webServer>
     <security>
     <requestFiltering>
     <requestLimits maxAllowedContentLength="100000" />
     </requestFiltering>
     </security>
    </system.webServer>
    
Please Sign in or register to post replies

Write your reply to:

Draft