# Getyarn link causes .mp4 download

**URL:** https://meta.discourse.org/t/getyarn-link-causes-mp4-download/66299
**Category:** Bug
**Created:** [2017年七月17日 02:24 UTC](https://meta.discourse.org/t/getyarn-link-causes-mp4-download/66299 "2017-07-17T02:24:06Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![LockeCJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lockecj/32/75350_2.png) [@LockeCJ](https://meta.discourse.org/u/LockeCJ)
#### Post date: [2017年七月17日 02:24 UTC](https://meta.discourse.org/t/getyarn-link-causes-mp4-download/66299/1 "2017-07-17T02:24:06Z")

</div>

Similar to

> [@Google Drive video link does not embed video](https://meta.discourse.org/t/google-drive-video-link-causes-swf-download/59719):
>
> Just encountered this on one of my sites. Confirmed the issue on [try.discourse.org](https://try.discourse.org/t/testing-google-drive-video/657). When the following link is added to a post, instead of displaying a video player, it causes a file download!. https://drive.google.com/file/d/0BwkewGYgOeyIVWhRY2pjTi1LQmM/view?usp=sharing

Posting a link to a [getyarn.io](http://getyarn.io) clip appears to onbox in the preview, but the actual post causes the browser to download a .mp4 file. More annoyingly, this happens any time the post comes into view, since I assume it’s being re-rendered.

It looks like the content type served by [getyarn.io](http://getyarn.io) is _application/mp4_ instead of _video/mp4_, so that may be relevant.

Here’s an example URL, escaped for obvious reasons:

```
https://getyarn.io/yarn-clip/d371f408-aea1-4508-9d56-c60898827e44

```

---

<div class="post-metadata">

### Author: ![Simsnet](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simsnet/32/72855_2.png) [@Simsnet](https://meta.discourse.org/u/Simsnet)
#### Post date: [2017年七月17日 02:26 UTC](https://meta.discourse.org/t/getyarn-link-causes-mp4-download/66299/2 "2017-07-17T02:26:31Z")

</div>

This bugs me too…I’ve always to know how to change a site’s MIME type…happens a lot with my web server (it’s something, no clue if Apache, nginx, JBossWeb, etc)

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [2017年七月17日 06:44 UTC](https://meta.discourse.org/t/getyarn-link-causes-mp4-download/66299/3 "2017-07-17T06:44:12Z")

</div>

Sounds like a problem with [getyarn.io](http://getyarn.io). Have you asked them why they use what you describe as the wrong mime type?

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [2017年七月17日 09:51 UTC](https://meta.discourse.org/t/getyarn-link-causes-mp4-download/66299/4 "2017-07-17T09:51:10Z")

</div>

Anything we can do here @eviltrout?

---

<div class="post-metadata">

### Author: ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)
#### Post date: [2017年七月18日 16:52 UTC](https://meta.discourse.org/t/getyarn-link-causes-mp4-download/66299/5 "2017-07-18T16:52:28Z")

</div>

I just tried it on [https://try.discourse.org](https://try.discourse.org) and it worked fine? Is it possible they fixed the MIME type or is this a browser specific issue? I tested on the latest Chrome.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [2017年七月18日 21:56 UTC](https://meta.discourse.org/t/getyarn-link-causes-mp4-download/66299/6 "2017-07-18T21:56:35Z")

</div>

Here’s the embed from above, let’s see if it works?

`https://getyarn.io/yarn-clip/d371f408-aea1-4508-9d56-c60898827e44`

---

<div class="post-metadata">

### Author: ![LockeCJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lockecj/32/75350_2.png) [@LockeCJ](https://meta.discourse.org/u/LockeCJ)
#### Post date: [2017年七月20日 22:24 UTC](https://meta.discourse.org/t/getyarn-link-causes-mp4-download/66299/7 "2017-07-20T22:24:50Z")

</div>

Agreed that they must have changed something on their end.

Thanks for looking into it!

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [2017年七月23日 01:04 UTC](https://meta.discourse.org/t/getyarn-link-causes-mp4-download/66299/8 "2017-07-23T01:04:53Z")

</div>

This topic was automatically closed after 4 days. New replies are no longer allowed.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [2019年一月28日 12:40 UTC](https://meta.discourse.org/t/getyarn-link-causes-mp4-download/66299/9 "2019-01-28T12:40:19Z")

</div>



---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [2019年一月28日 12:40 UTC](https://meta.discourse.org/t/getyarn-link-causes-mp4-download/66299/10 "2019-01-28T12:40:37Z")

</div>

Let’s see

This seems to autoplay (once) on Firefox but not in Chrome for me.
