Content-Length Mismatch


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?


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.


Active member

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...