1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Content-Length Mismatch

Discussion in 'XenForo Development Discussions' started by Uniphix, Aug 13, 2013.

  1. Uniphix

    Uniphix Active Member

    I have attachments that are greater than the 2MB in size it loads fine in the browser but after fully loading it gives me a "Content-Length" mismatch in fiddler and preventing actual image download into the browser.

    No modification to XenForo 1.1.3 version of the XenForo_ViewPublic_Attachment_View.

    Is there a way to fix this?
     
  2. Uniphix

    Uniphix Active Member

    Any staff have an idea whats up?
     
  3. Uniphix

    Uniphix Active Member

    Content-Length: 409455
    Content-Disposition: inline; filename="accessdenied.jpg"
    Content-Type: image/jpeg

    Fiddler responds this:

    Content-Length mismatch: Response Header indicated 409,455 bytes, but server sent 59,850 bytes.
     
  4. Digital Doctor

    Digital Doctor Well-Known Member

  5. Uniphix

    Uniphix Active Member

    Hi,

    I managed to fix it, the original size of the image was 409,455, after it was uploaded it was changed to be only 59,850 bytes. So i'm thinking that it gets automatically resized, and set the quaility to 85 if it is a jpeg, it would explain the reason for the file size changes... I think I know what I need to do to make this work correctly for the future...

    Ben
     

Share This Page