# Downloading CSS and HTML Customizations export fails

**URL:** https://meta.discourse.org/t/downloading-css-and-html-customizations-export-fails/58561
**Category:** Bug
**Created:** [7. März 2017 um 15:13 UTC](https://meta.discourse.org/t/downloading-css-and-html-customizations-export-fails/58561 "2017-03-07T15:13:11Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![imrehg](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/imrehg/32/119891_2.png) [@imrehg](https://meta.discourse.org/u/imrehg)
#### Post date: [7. März 2017 um 15:13 UTC](https://meta.discourse.org/t/downloading-css-and-html-customizations-export-fails/58561/1 "2017-03-07T15:13:11Z")

</div>

I have some customization in a Discourse-hosted Discourse. When I hit export, I get a `Failed - No File` error in Chrome, with the file-name shown there as the customization’s ID.

![](https://global.discourse-cdn.com/meta/original/3X/3/f/3f94ac8ce1e13aa83bb8123289e89b1671fe4528.png)

If I then open the Chrome downloads page, and click on the failed link, it will download the file correctly. Here below the lower is the earlier file, shows failure, then I’ve clicked on clicked on that entry, and then the upper download happened with the correct filename and all.

 ![](https://global.discourse-cdn.com/meta/original/3X/a/2/a21573aa7664c26e297379180ed2c25cc347075c.png)

I’m using Chromium 56.0.2924.87 on Linux 64-bit

---

<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: [7. März 2017 um 23:43 UTC](https://meta.discourse.org/t/downloading-css-and-html-customizations-export-fails/58561/2 "2017-03-07T23:43:42Z")

</div>

Can you repro @techapj?

---

<div class="post-metadata">

### Author: ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)
#### Post date: [8. März 2017 um 16:52 UTC](https://meta.discourse.org/t/downloading-css-and-html-customizations-export-fails/58561/3 "2017-03-08T16:52:29Z")

</div>

I can repro this issue. Added on my list.

---

<div class="post-metadata">

### Author: ![Bruges](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bruges/32/121095_2.png) [@Bruges](https://meta.discourse.org/u/Bruges)
#### Post date: [8. März 2017 um 18:30 UTC](https://meta.discourse.org/t/downloading-css-and-html-customizations-export-fails/58561/4 "2017-03-08T18:30:22Z")

</div>

how can you open & edit _ **.json** _ file

@imrehg

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [8. März 2017 um 19:02 UTC](https://meta.discourse.org/t/downloading-css-and-html-customizations-export-fails/58561/5 "2017-03-08T19:02:42Z")

</div>

@Bruges a `json` file is simply a fancy formatted text file. You can open it with your favorite text program, like Notepad, TextEdit, Notepad++, Sublime, Atom, etc.

---

<div class="post-metadata">

### Author: ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)
#### Post date: [8. März 2017 um 19:57 UTC](https://meta.discourse.org/t/downloading-css-and-html-customizations-export-fails/58561/6 "2017-03-08T19:57:12Z")

</div>

This issue was specific to Chrome/Chromium browser.

Chrome browser was not including `HTTP_ACCEPT` header when requesting file download. I fixed this issue by removing `download` attribute (from anchor tag) so now Chrome is making download request with `HTTP_ACCEPT` header included. Verified that download is working fine on Firefox and Safari as well.

[https://github.com/discourse/discourse/commit/dfd5b06c82ab30632ba6fdef224f8971eab0a44e](https://github.com/discourse/discourse/commit/dfd5b06c82ab30632ba6fdef224f8971eab0a44e)

---

<div class="post-metadata">

### Author: ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)
#### Post date: [9. März 2017 um 04:16 UTC](https://meta.discourse.org/t/downloading-css-and-html-customizations-export-fails/58561/7 "2017-03-09T04:16:54Z")

</div>


