Image files utilizing image styles have incorrect content length header

Created on 5 October 2016, almost 9 years ago
Updated 8 June 2025, about 2 months ago

The content length of uploaded images is not correct on encrypted files causing some browsers(Safari and Chrome) not to display the image. I've attached a patch that uses file_encrypt's EncryptBinaryFileResponse in the dImageStyleDownloadController.php which recalculates the content length and solves the issue.

πŸ› Bug report
Status

Closed: duplicate

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States jsdix

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024