# Incorrect mime-types (content-type header) for mp4 and js

**URL:** <https://meta.discourse.org/t/incorrect-mime-types-content-type-header-for-mp4-and-js/257802>\
**Category:** Bug\
**Created:** [March 11, 2023, 3:27pm UTC](https://meta.discourse.org/t/incorrect-mime-types-content-type-header-for-mp4-and-js/257802 "2023-03-11T15:27:21Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![iprok](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/iprok/32/297510_2.png) [@iprok](https://meta.discourse.org/u/iprok)\
**Post date:** [March 11, 2023, 3:27pm UTC](https://meta.discourse.org/t/incorrect-mime-types-content-type-header-for-mp4-and-js/257802/1 "2023-03-11T15:27:21Z")

</div>

Hello!

I’ve just noticed that discourse is putting incorrect Content-type) headers to several file types:  
~~mp4 files from /uploads/ goes with content-type: application/mp4 instead of video/mp4~~  
my uploads went from S3 so it is up to the S3 hosting provider.

Some javascript (.js) e.g. from /brotli\_asset/ goes with application/javascript instead of text/javascript .

I use discourse\_docker without any modifications, I’ve checked included nginx, it contains correct mime-types configuration file. Seems that it’s discourse backend guilty of sending this incorrect mime-types.

---

_[View the full topic](https://meta.discourse.org/t/incorrect-mime-types-content-type-header-for-mp4-and-js/257802)._
