# Canceling an image load can leave the Uploading stuck

**URL:** https://meta.discourse.org/t/canceling-an-image-load-can-leave-the-uploading-stuck/72961
**Category:** Bug
**Created:** [28.Октябрь.2017 03:12:56 UTC](https://meta.discourse.org/t/canceling-an-image-load-can-leave-the-uploading-stuck/72961 "2017-10-28T03:12:56Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![peternlewis](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/peternlewis/32/108888_2.png) [@peternlewis](https://meta.discourse.org/u/peternlewis)
#### Post date: [28.Октябрь.2017 03:12:56 UTC](https://meta.discourse.org/t/canceling-an-image-load-can-leave-the-uploading-stuck/72961/1 "2017-10-28T03:12:56Z")

</div>

If I upload an image, and cancel the upload, it can get in a stuck state:

![20171028-110958](https://global.discourse-cdn.com/meta/original/3X/b/c/bc3c24fad1dee5d7b47534b46875cd4c7a568111.png)

The spinner is still spinning, but is clearly never going to finish, and I can no longer press Reply when stuck in this state,

If I cancel the reply, and then click reply again, it is still stuck in the state, although now it says “Uploading 0%”.

I have to reload the page to get it unstuck.

This is Discourse 1.8.9, Safari/Sierra (10.12.6)

---

<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: [29.Октябрь.2017 09:13:38 UTC](https://meta.discourse.org/t/canceling-an-image-load-can-leave-the-uploading-stuck/72961/2 "2017-10-29T09:13:38Z")

</div>

> [@peternlewis](#):
>
> it **can** get in a stuck state

I’ve heard that bug but was never able to reproduce locally. Any chances you could find reproduction steps?

---

<div class="post-metadata">

### Author: ![peternlewis](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/peternlewis/32/108888_2.png) [@peternlewis](https://meta.discourse.org/u/peternlewis)
#### Post date: [30.Октябрь.2017 02:03:07 UTC](https://meta.discourse.org/t/canceling-an-image-load-can-leave-the-uploading-stuck/72961/3 "2017-10-30T02:03:07Z")

</div>

Yep, I think I have it - it happens on the second drag/cancel.

Safari/Mac OS X 10.12.6 (Sierra).

- Reply
- Drag a large image in
- Wait for it to start
- Cancel
- Drag a large image in
- Wait for it to start
- Cancel

This caused the bug every time for me.

---

<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: [31.Январь.2018 19:53:07 UTC](https://meta.discourse.org/t/canceling-an-image-load-can-leave-the-uploading-stuck/72961/5 "2018-01-31T19:53:07Z")

</div>

I’m pretty sure this has been fixed by @gerhard.

@peternlewis can you confirm this has been fixed?

---

<div class="post-metadata">

### Author: ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)
#### Post date: [31.Январь.2018 19:57:17 UTC](https://meta.discourse.org/t/canceling-an-image-load-can-leave-the-uploading-stuck/72961/6 "2018-01-31T19:57:17Z")

</div>

I fixed it on mobile, because it didn’t work there at all after the composer refactoring.

This bug seems to describe a different 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: [31.Январь.2018 19:57:42 UTC](https://meta.discourse.org/t/canceling-an-image-load-can-leave-the-uploading-stuck/72961/7 "2018-01-31T19:57:42Z")

</div>

Ok, I’ll have a look then.

---

<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: [31.Январь.2018 21:41:47 UTC](https://meta.discourse.org/t/canceling-an-image-load-can-leave-the-uploading-stuck/72961/9 "2018-01-31T21:41:47Z")

</div>

I did try on Windows 10 / Chrome 63.0.3239.132 and could not reproduce the issue. I was always able to properly cancel the upload.

---

<div class="post-metadata">

### Author: ![peternlewis](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/peternlewis/32/108888_2.png) [@peternlewis](https://meta.discourse.org/u/peternlewis)
#### Post date: [01.Февраль.2018 08:29:32 UTC](https://meta.discourse.org/t/canceling-an-image-load-can-leave-the-uploading-stuck/72961/12 "2018-02-01T08:29:32Z")

</div>

Yes, it appears fixed. Thanks.

---

<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: [01.Февраль.2018 08:29:43 UTC](https://meta.discourse.org/t/canceling-an-image-load-can-leave-the-uploading-stuck/72961/13 "2018-02-01T08:29:43Z")

</div>


