# Las imágenes con el carácter \] en el nombre de archivo no se muestran correctamente

**URL:** https://meta.discourse.org/t/images-with-character-in-filename-dont-display-properly/78240
**Category:** Bug
**Created:** [17 Enero, 2018 02:22 UTC](https://meta.discourse.org/t/images-with-character-in-filename-dont-display-properly/78240 "2018-01-17T02:22:25Z")
**Posts on this page:** 5
**Page:** 2

<div class="post-metadata">

### Author: ![ron\_jeremy](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ron_jeremy/32/56621_2.png) [@ron\_jeremy](https://meta.discourse.org/u/ron_jeremy)
#### Post date: [19 Enero, 2018 08:01 UTC](https://meta.discourse.org/t/images-with-character-in-filename-dont-display-properly/78240/21 "2018-01-19T08:01:54Z")

</div>

Ok, I removed the **]** and now the image works – thanks very much. I’m still confused as to how it got there in the first place and why it doesn’t appear in other images.

---

<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: [19 Enero, 2018 08:15 UTC](https://meta.discourse.org/t/images-with-character-in-filename-dont-display-properly/78240/22 "2018-01-19T08:15:01Z")

</div>

It is odd because that text should come from the filename. Let me see what happens with a filename I intentionally add a `]` character to:

`![pic]|550x404](upload://xyEF7z3PW8gPseTwSnNbsakqy1G.jpg)`

yes that definitely causes it, the filename was

`pic].jpg` cc @vinothkannans – so I would strip `[` and `]` from filenames when building the alt text please.

---

<div class="post-metadata">

### Author: ![ron\_jeremy](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ron_jeremy/32/56621_2.png) [@ron\_jeremy](https://meta.discourse.org/u/ron_jeremy)
#### Post date: [19 Enero, 2018 08:24 UTC](https://meta.discourse.org/t/images-with-character-in-filename-dont-display-properly/78240/23 "2018-01-19T08:24:23Z")

</div>

Thank you very much for sticking with me and solving this issue.

---

<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: [19 Enero, 2018 18:53 UTC](https://meta.discourse.org/t/images-with-character-in-filename-dont-display-properly/78240/24 "2018-01-19T18:53:09Z")

</div>

This is now fixed 🍕

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

---

<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: [20 Enero, 2018 17:00 UTC](https://meta.discourse.org/t/images-with-character-in-filename-dont-display-properly/78240/25 "2018-01-20T17:00:08Z")

</div>

This topic was automatically closed after 22 hours. New replies are no longer allowed.

[Previous page](https://meta.discourse.org/t/images-with-character-in-filename-dont-display-properly/78240.md?page=1)
