# Failed image upload blocks topic creation

**URL:** https://meta.discourse.org/t/failed-image-upload-blocks-topic-creation/36038
**Category:** Bug
**Created:** [November 26, 2015, 7:39am UTC](https://meta.discourse.org/t/failed-image-upload-blocks-topic-creation/36038 "2015-11-26T07:39:35Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [November 26, 2015, 7:39am UTC](https://meta.discourse.org/t/failed-image-upload-blocks-topic-creation/36038/1 "2015-11-26T07:39:36Z")

</div>

Trying to post my previous bug, I tried to upload a large-ish GIF in the post body but after a couple of minutes it was still sat at Uploading 100%, with Create Topic disabled:

 ![](https://global.discourse-cdn.com/meta/original/3X/7/1/710168ae98ef2ad56ed8b38bf90a5d1db5195ad8.png)

I uploaded the image elsewhere and replaced the code in the post body, but was still blocked from creating the topic.

I abandoned creating the post, hit +New Topic to create another, to see this at the bottom:

![](https://global.discourse-cdn.com/meta/original/3X/7/a/7a431ea01bc018a7fd90955befb8381884f6c9f8.png)

And Create Topic still grayed out. Had to switch browsers to submit it.

---

<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: [November 26, 2015, 10:57am UTC](https://meta.discourse.org/t/failed-image-upload-blocks-topic-creation/36038/2 "2015-11-26T10:57:05Z")

</div>

Hard refresh (ctrl+f5) didn’t work? I think it should work.

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [November 26, 2015, 11:00am UTC](https://meta.discourse.org/t/failed-image-upload-blocks-topic-creation/36038/3 "2015-11-26T11:00:06Z")

</div>

Is the 0% uploading after previous failure a known issue? Is a hard refresh the only fix?

The failure appears to be due to the size of the image, I can upload smaller GIFs without issue. Is there any way to return an error rather than sit at 100% and then trap the user at 0%?

---

<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: [November 26, 2015, 12:29pm UTC](https://meta.discourse.org/t/failed-image-upload-blocks-topic-creation/36038/4 "2015-11-26T12:29:06Z")

</div>

Possibly a regression if the too large upload just hangs. Can you test on [try.discourse.org](http://try.discourse.org) @zogstrip?

---

<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: [November 26, 2015, 5:30pm UTC](https://meta.discourse.org/t/failed-image-upload-blocks-topic-creation/36038/5 "2015-11-26T17:30:53Z")

</div>

The only thing I could do here was to prevent the server from spending (_way too much_) time downsizing and optimizing images that were too large to begin with.

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

---

<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: [February 21, 2016, 7:43pm UTC](https://meta.discourse.org/t/failed-image-upload-blocks-topic-creation/36038/6 "2016-02-21T19:43:05Z")

</div>


