# Images uploading problem (Heroku, S3, JS)

**URL:** <https://meta.discourse.org/t/images-uploading-problem-heroku-s3-js/41558>\
**Category:** Development\
**Created:** [2016年三月25日 09:32 UTC](https://meta.discourse.org/t/images-uploading-problem-heroku-s3-js/41558 "2016-03-25T09:32:22Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anthony\_Hopkins](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/anthony_hopkins/32/121811_2.png) [@Anthony\_Hopkins](https://meta.discourse.org/u/Anthony_Hopkins)\
**Post date:** [2016年三月25日 09:32 UTC](https://meta.discourse.org/t/images-uploading-problem-heroku-s3-js/41558/1 "2016-03-25T09:32:22Z")

</div>

When I try to upload image (composer form, User Avatar etc.) the _Uploading…_ never ends.

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

I tested everything:

1. Heroku → S3 connection correct (file uploaded):  
 ![](https://global.discourse-cdn.com/meta/original/3X/c/a/cafbef3483dfb58a19afe756a3984f52145d044d.png)
2. Heroku response Success (HTTP Status 200)
3. It looks like some JS error but No JS errors
4. **The same configuration works properly on my local Ubuntu.**

Any idea? Thanks for response

---

<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:** [2016年三月25日 10:08 UTC](https://meta.discourse.org/t/images-uploading-problem-heroku-s3-js/41558/2 "2016-03-25T10:08:10Z")

</div>

Why is Heroku involved here? We can only support the docker-based install.

---

<div class="post-metadata">

**Author:** ![Anthony\_Hopkins](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/anthony_hopkins/32/121811_2.png) [@Anthony\_Hopkins](https://meta.discourse.org/u/Anthony_Hopkins)\
**Post date:** [2016年三月25日 11:36 UTC](https://meta.discourse.org/t/images-uploading-problem-heroku-s3-js/41558/3 "2016-03-25T11:36:47Z")

</div>

Heroku because my client choiced Heroku.

Heroku is a server layer. As you see the server response is correct (identical as at my Local machine). File saved to S3 correctly. The problem is client (Browser+JS) side.

---

<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:** [2016年三月25日 22:03 UTC](https://meta.discourse.org/t/images-uploading-problem-heroku-s3-js/41558/5 "2016-03-25T22:03:01Z")

</div>

We use s3 uploads on meta, they work fine

I suspect something is off with your heroku install, this is one of the many reasons docker is the only install method we support

---

<div class="post-metadata">

**Author:** ![Anthony\_Hopkins](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/anthony_hopkins/32/121811_2.png) [@Anthony\_Hopkins](https://meta.discourse.org/u/Anthony_Hopkins)\
**Post date:** [2016年四月6日 19:50 UTC](https://meta.discourse.org/t/images-uploading-problem-heroku-s3-js/41558/6 "2016-04-06T19:50:57Z")

</div>

The problem was invalid https protocol configuration. Fixed. Thanks for help

---

<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:** [2016年四月6日 19:52 UTC](https://meta.discourse.org/t/images-uploading-problem-heroku-s3-js/41558/7 "2016-04-06T19:52:35Z")

</div>


