# Upload of image with accent in the filename is failing

**URL:** <https://meta.discourse.org/t/upload-of-image-with-accent-in-the-filename-is-failing/33437>\
**Category:** Bug\
**Created:** [2015年九月18日 11:34 UTC](https://meta.discourse.org/t/upload-of-image-with-accent-in-the-filename-is-failing/33437 "2015-09-18T11:34:45Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![gzoritchak](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gzoritchak/32/116684_2.png) [@gzoritchak](https://meta.discourse.org/u/gzoritchak)\
**Post date:** [2015年九月18日 11:34 UTC](https://meta.discourse.org/t/upload-of-image-with-accent-in-the-filename-is-failing/33437/1 "2015-09-18T11:34:45Z")

</div>

The demo below. The same image is uploaded twice.

The first time the name of the file is “écran.png”. At the end of the upload the link is not updated. The file was uploaded (you can check in the original directory).

Uploading écran.png…

After changing the name from “écran.png” to “ecran.png”. The upload is working.

It’s a problem for many countries. By default a screen copy file name on a french mac is “Capture d’écran 2015-mm-DD à HH:MM:SS.png”.

 ![](https://global.discourse-cdn.com/meta/original/3X/8/5/85036829e8fc8997c2fff7b0dc4c505b54930255.png)

---

<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:** [2015年九月18日 11:39 UTC](https://meta.discourse.org/t/upload-of-image-with-accent-in-the-filename-is-failing/33437/2 "2015-09-18T11:39:49Z")

</div>

Looks like a bug for you @zogstrip.

---

<div class="post-metadata">

**Author:** ![Matthieu](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/matthieu/32/107885_2.png) [@Matthieu](https://meta.discourse.org/u/Matthieu)\
**Post date:** [2015年九月21日 09:47 UTC](https://meta.discourse.org/t/upload-of-image-with-accent-in-the-filename-is-failing/33437/3 "2015-09-21T09:47:20Z")

</div>

Same here, but for it seems it is more due to the space in the filename:

 ![](https://global.discourse-cdn.com/meta/original/3X/4/e/4e31b87552a6f291394a3c31b064cc9f503b23d0.png)

BTW it also does not work on meta.discourse ^^ I have had to rename the file.

---

<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:** [2015年九月21日 10:22 UTC](https://meta.discourse.org/t/upload-of-image-with-accent-in-the-filename-is-failing/33437/4 "2015-09-21T10:22:17Z")

</div>

Yeah we should definitely fix this as well @zogstrip or @eviltrout.

---

<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:** [2015年九月21日 14:18 UTC](https://meta.discourse.org/t/upload-of-image-with-accent-in-the-filename-is-failing/33437/5 "2015-09-21T14:18:22Z")

</div>

Thanks for reporting that issue. Here’s the fix 🍌

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

---

<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:** [2015年九月21日 20:18 UTC](https://meta.discourse.org/t/upload-of-image-with-accent-in-the-filename-is-failing/33437/6 "2015-09-21T20:18:33Z")

</div>

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