# PNG's a no show

**URL:** <https://meta.discourse.org/t/pngs-a-no-show/71634>\
**Category:** Support\
**Created:** [10월 8, 2017, 6:29오후 UTC](https://meta.discourse.org/t/pngs-a-no-show/71634 "2017-10-08T18:29:53Z")\
**Posts on this page:** 12\
**Page:** 2

<div class="post-metadata">

**Author:** ![slspencer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/slspencer/32/73567_2.png) [@slspencer](https://meta.discourse.org/u/slspencer)\
**Post date:** [10월 11, 2017, 11:47오후 UTC](https://meta.discourse.org/t/pngs-a-no-show/71634/21 "2017-10-11T23:47:56Z")

</div>

Thanks @Jay! &nbsp;&nbsp;

---

<div class="post-metadata">

**Author:** ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)\
**Post date:** [10월 11, 2017, 11:49오후 UTC](https://meta.discourse.org/t/pngs-a-no-show/71634/22 "2017-10-11T23:49:00Z")

</div>

SVG images are run through an XML whitelist, any non-approved elements are removed.

> <https://github.com/discourse/discourse/blob/5d528f0d159a87ebbe266ff4f9c2a38d0b250669/lib/upload_creator.rb#L10>

---

<div class="post-metadata">

**Author:** ![featheredtoast](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/featheredtoast/32/116994_2.png) [@featheredtoast](https://meta.discourse.org/u/featheredtoast)\
**Post date:** [10월 11, 2017, 11:55오후 UTC](https://meta.discourse.org/t/pngs-a-no-show/71634/24 "2017-10-11T23:55:46Z")

</div>

What Jay said above – yes it’s absolutely safe.

If you wanted a detailed explanation: The Docker image hosts the software (ruby, the code, postgres, etc) that your forum runs on. Discourse stores your data outside the image, so these images are safe to be shut down and upgraded when there’s a new version out. Your data (forum posts, users, site settings) will be restored when it restarts, and that will be mounted onto the new base image.

---

<div class="post-metadata">

**Author:** ![slspencer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/slspencer/32/73567_2.png) [@slspencer](https://meta.discourse.org/u/slspencer)\
**Post date:** [10월 12, 2017, 12:48오전 UTC](https://meta.discourse.org/t/pngs-a-no-show/71634/25 "2017-10-12T00:48:50Z")

</div>

ok the forum’s back, the latest Discourse & Docker versions are installed.

But we’re still getting the new improved problem, where .pngs are visible yet trying to download .txt files (and other non-image files) to be displayed in a browser - we’re not getting the download/save window dialog (This change happened when the latest Discourse update was installed a few days ago). See this post on our forum:  
[https://forum.valentina-project.org/t/test-downloads-val-vit-txt-pdf](https://forum.valentina-project.org/t/test-downloads-val-vit-txt-pdf)

File sharing is really important in providing support to our user community.  
Any thoughts on what could cause this?

---

<div class="post-metadata">

**Author:** ![slspencer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/slspencer/32/73567_2.png) [@slspencer](https://meta.discourse.org/u/slspencer)\
**Post date:** [10월 12, 2017, 3:42오전 UTC](https://meta.discourse.org/t/pngs-a-no-show/71634/26 "2017-10-12T03:42:16Z")

</div>

OK after all that…we still have the problem that attachments are acting weird.

1. pngs weren’t displaying

2. After this week’s update the .pngs are displaying properly. But now downloads don’t work. Text files are opened in a browser tab like they’re an image file.

---

<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:** [10월 12, 2017, 4:30오전 UTC](https://meta.discourse.org/t/pngs-a-no-show/71634/27 "2017-10-12T04:30:15Z")

</div>

> [@slspencer](#):
>
> But now downloads don’t work. Text files are opened in a browser tab like they’re an image file.

This is a known bug. Spoke with engineering and it is believed to be the same issue as [Upload file name not kept on download](https://meta.discourse.org/t/upload-file-name-not-kept-on-download/71184).

---

<div class="post-metadata">

**Author:** ![slspencer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/slspencer/32/73567_2.png) [@slspencer](https://meta.discourse.org/u/slspencer)\
**Post date:** [10월 12, 2017, 12:09오후 UTC](https://meta.discourse.org/t/pngs-a-no-show/71634/28 "2017-10-12T12:09:36Z")

</div>

Thanks @joshua. But How can this be a bug if .zip & .pdf files are downloaded correctly, but others aren’t? The download and display functions are working, the choice of whether to download or display the selected file is what’s a bit muddled.

Is there some method in the code which selects how to process each file type when the download icon is selected?  
Can I get to it and make a custom change for our pattern & measurement & text files?

This post has links to each type of file, good for testing:  
[https://forum.valentina-project.org/t/how-to-make-sleeve-cap/1972/26](https://forum.valentina-project.org/t/how-to-make-sleeve-cap/1972/26)

---

<div class="post-metadata">

**Author:** ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)\
**Post date:** [11월 8, 2017, 9:22오전 UTC](https://meta.discourse.org/t/pngs-a-no-show/71634/31 "2017-11-08T09:22:06Z")

</div>

Your Discourse is a month old. Can you update to latest? Your downloading issues should be fixed.

---

<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:** [11월 8, 2017, 9:44오전 UTC](https://meta.discourse.org/t/pngs-a-no-show/71634/32 "2017-11-08T09:44:13Z")

</div>

Sorry for the delay, it was a Rails 5.x upgrade issue that took a while to work out.

---

<div class="post-metadata">

**Author:** ![ngocdt](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ngocdt/32/161279_2.png) [@ngocdt](https://meta.discourse.org/u/ngocdt)\
**Post date:** [11월 15, 2019, 11:09오전 UTC](https://meta.discourse.org/t/pngs-a-no-show/71634/33 "2019-11-15T11:09:46Z")

</div>

@slspencer 저는 force HTTPS를 활성화해서 이 문제를 해결했습니다. 당신은 어떻게 하셨나요?

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)\
**Post date:** [9월 4, 2023, 9:51오후 UTC](https://meta.discourse.org/t/pngs-a-no-show/71634/35 "2023-09-04T21:51:08Z")

</div>



---

<div class="post-metadata">

**Author:** ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)\
**Post date:** [9월 4, 2023, 10:14오후 UTC](https://meta.discourse.org/t/pngs-a-no-show/71634/36 "2023-09-04T22:14:07Z")

</div>



[이전 페이지](https://meta.discourse.org/t/pngs-a-no-show/71634.md?page=1)
