# SVG upload with CR/LF fails. Change to LF works

**URL:** <https://meta.discourse.org/t/svg-upload-with-cr-lf-fails-change-to-lf-works/120148>\
**Category:** Bug\
**Created:** [12 ביוני,‏ 2019,‏ 1:01pm UTC](https://meta.discourse.org/t/svg-upload-with-cr-lf-fails-change-to-lf-works/120148 "2019-06-12T13:01:06Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![EricGT](https://avatars.discourse-cdn.com/v4/letter/e/f1d935/32.png) [@EricGT](https://meta.discourse.org/u/EricGT)\
**Post date:** [12 ביוני,‏ 2019,‏ 2:04pm UTC](https://meta.discourse.org/t/svg-upload-with-cr-lf-fails-change-to-lf-works/120148/3 "2019-06-12T14:04:50Z")

</div>

> [@codinghorror](#):
>
> What exactly are you reporting?

That uploading an SVG that contains CR/LF will fail with error message. However uploading an SVG that has the CR/LF converted to LF will work.

In other words, if a user sees the error message:

> Sorry, but we couldn’t determine the size of the image. Maybe your image is corrupted?

How are they to know that one of the problems is that they should change the CR/LF to LF

or another option is that

discourse should modify the security scanner/whistleblower to allow CR/LF as valid. 😃

---

_[View the full topic](https://meta.discourse.org/t/svg-upload-with-cr-lf-fails-change-to-lf-works/120148)._
