# Arquivos Mp4 estão baixando em vez de serem exibidos inline

**URL:** https://meta.discourse.org/t/mp4-files-are-downloading-instead-of-displaying-inline/396363
**Category:** Bug
**Created:** [Fevereiro 18, 2026, 7:38am UTC](https://meta.discourse.org/t/mp4-files-are-downloading-instead-of-displaying-inline/396363 "2026-02-18T07:38:21Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)
#### Post date: [Fevereiro 18, 2026, 7:38am UTC](https://meta.discourse.org/t/mp4-files-are-downloading-instead-of-displaying-inline/396363/1 "2026-02-18T07:38:21Z")

</div>

Continuando a discussão de [Make PDFs open directly (not via download) by default](https://meta.discourse.org/t/make-pdfs-open-directly-not-via-download-by-default/388190/21)

> [@david](#):
>
> Em teoria, mp4 deve ser servido inline:
> 
> [discourse/lib/file\_helper.rb at 2d615863d2613a7237451b8997c3c8c6583e7ae8 · discourse/discourse · GitHub](https://github.com/discourse/discourse/blob/2d615863d2613a7237451b8997c3c8c6583e7ae8/lib/file_helper.rb#L191C2-L194C6)
> 
> o que usa:
> 
> [discourse/lib/file\_helper.rb at 2d615863d2613a7237451b8997c3c8c6583e7ae8 · discourse/discourse · GitHub](https://github.com/discourse/discourse/blob/2d615863d2613a7237451b8997c3c8c6583e7ae8/lib/file_helper.rb#L205C3-L207C6)

> [@Canapin](#):
>
> No meta, o discourse também força o download de mp4: [https://global.discourse-cdn.com/meta/original/4X/3/f/0/3f09f895d21cf0ae897d90c947abb816830b00a2.mp4](https://global.discourse-cdn.com/meta/original/4X/3/f/0/3f09f895d21cf0ae897d90c947abb816830b00a2.mp4)

Algo está fazendo com que os arquivos mp4 ainda sejam servidos com `content-disposition: attachment`. Precisamos investigar e corrigir.

---

<div class="post-metadata">

### Author: ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)
#### Post date: [Fevereiro 18, 2026, 8:58am UTC](https://meta.discourse.org/t/mp4-files-are-downloading-instead-of-displaying-inline/396363/2 "2026-02-18T08:58:22Z")

</div>

Para constar, houve um tópico sobre isso e o Nat trabalhou na questão:

> [@Incorrect mime-types (content-type header) for mp4 and js](https://meta.discourse.org/t/incorrect-mime-types-content-type-header-for-mp4-and-js/257802/16?u=canapin):
>
> Just a quick update - The ext\_mime\_db above that we use follows IANA Media Types defined here - [https://www.iana.org/assignments/media-types/media-types.xhtml](https://www.iana.org/assignments/media-types/media-types.xhtml). Unfortunately, this means that mp4 is correctly application/mp4 sweat_smile Though, looking into our S3 uploader implementation further, I do see that we are adding [Content-Disposition](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Disposition) header "attachment" for pretty much every upload that is not an image, but it feels like it was only intended…
