Since I have updated Drupal to 9.4.7, media files are not rendering properly. This happens when we open a media for example https://example.com/media/node_id. Thanks!
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | 3313534-6.patch | 619 bytes | clayfreeman |
| #5 | media_download-not-rendering-issue-1.patch | 457 bytes | hargurpreet |
Comments
Comment #2
hargurpreet commentedComment #3
hargurpreet commentedHi, I have fixed this issue by setting content type. I'm also attaching the patch to fix this issue. Thanks!
Comment #4
hargurpreet commentedComment #5
hargurpreet commentedUpdated the patch file. Thanks!
Comment #6
clayfreemanI think I prefer adding this header to all responses if possible instead of just inline responses. Let me know if this patch resolves the issue for you.
Comment #9
clayfreemanI've added a default content type of
application/octet-streamwhich will get overridden by the file's MIME type if one is available.