# Uploading errors not alerted

**URL:** https://meta.discourse.org/t/uploading-errors-not-alerted/75972
**Category:** Bug
**Created:** [December 13, 2017, 4:49pm UTC](https://meta.discourse.org/t/uploading-errors-not-alerted/75972 "2017-12-13T16:49:54Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![youwiki](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/youwiki/32/89936_2.png) [@youwiki](https://meta.discourse.org/u/youwiki)
#### Post date: [December 13, 2017, 4:49pm UTC](https://meta.discourse.org/t/uploading-errors-not-alerted/75972/1 "2017-12-13T16:49:54Z")

</div>

Hello!

We calling `displayErrorForUpload` with `data.jqXHR.responseJSON` parameter, but should provide whole `data` object, as required in `/lib/utilities.js.es6`

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [December 15, 2017, 12:09am UTC](https://meta.discourse.org/t/uploading-errors-not-alerted/75972/2 "2017-12-15T00:09:54Z")

</div>

This is legit, and we got to fix it, I think this is a dupe, already assigned to @zogstrip here:

> [@PNG silent upload fail on jpg conversion](https://meta.discourse.org/t/png-silent-upload-fail-on-jpg-conversion/75291/7):
>
> @zogstrip looks like we are getting a 500 status code here and the error handler is unable to handle the error cause no json is being sent back. This is happening cause there is an unhandled exception internally. (uploader should handle all of them and return proper errors) We should probably add some “safeguard” just in case error handling to the js side of thing, eg: if you don’t have an error message display a simple “something went wrong” - like network went down mid request, random 503 a…

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [December 15, 2017, 12:09am UTC](https://meta.discourse.org/t/uploading-errors-not-alerted/75972/3 "2017-12-15T00:09:58Z")

</div>


