# Uploading Images stalls and does not translate to img src tag

**URL:** <https://meta.discourse.org/t/uploading-images-stalls-and-does-not-translate-to-img-src-tag/34021>\
**Category:** Support\
**Tags:** s3\
**Created:** [2015年十月2日 01:05 UTC](https://meta.discourse.org/t/uploading-images-stalls-and-does-not-translate-to-img-src-tag/34021 "2015-10-02T01:05:13Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Senthil](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/senthil/32/116238_2.png) [@Senthil](https://meta.discourse.org/u/Senthil)\
**Post date:** [2015年十月2日 01:05 UTC](https://meta.discourse.org/t/uploading-images-stalls-and-does-not-translate-to-img-src-tag/34021/1 "2015-10-02T01:05:14Z")

</div>

I am running 1.5.0.beta1 on Digital Ocean Instance.

[Set up file and image uploads to S3](https://meta.discourse.org/t/setting-up-file-and-image-uploads-to-s3/7229) - Is this howto still the accurate and up to date information? I followed it to the dot and still I am unable to set up image upload to s3 in my digital ocean instance of discourse.

I see that my images are getting uploaded to my bucket but in the older original/1X

```
us-west-2&bucket=thinnal&prefix=original/1X/

```

The log message

```
Processing by UploadsController#create as JSON
  Parameters: {"type"=>"composer", "files"=>[#<ActionDispatch::Http::UploadedFile:0x007f9f083c4cc8 @tempfile=#<Tempfile:/tmp/RackMultipart20151002-29190-17rmzjw.jpg>, @original_filename="21210543263_f961218003_z.jpg", @content_type="image/jpeg", @headers="Content-Disposition: form-data; name=\"files[]\"; filename=\"21210543263_f961218003_z.jpg\"\r\nContent-Type: image/jpeg\r\n">], "client_id"=>"xxxxx", "authenticity_token"=>"XXXXAllaJDcrc9J9drnj4CA=="}
Completed 200 OK in 5ms (Views: 0.3ms | ActiveRecord: 0.6ms)

```

But the operation is struck for me.

[https://dl.dropbox.com/s/wvwdpeq3fqs41xs/Screenshot%202015-10-01%2020.03.04.png](https://dl.dropbox.com/s/wvwdpeq3fqs41xs/Screenshot%202015-10-01%2020.03.04.png)

---

<div class="post-metadata">

**Author:** ![Senthil](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/senthil/32/116238_2.png) [@Senthil](https://meta.discourse.org/u/Senthil)\
**Post date:** [2015年十月2日 04:05 UTC](https://meta.discourse.org/t/uploading-images-stalls-and-does-not-translate-to-img-src-tag/34021/2 "2015-10-02T04:05:14Z")

</div>

It is not just s3, even if I disable s3, my image uploads are getting struct in that page.  
After 200, it is not translating to img src file.

 ![](https://global.discourse-cdn.com/meta/original/3X/5/c/5c88bf029883bdb82a8a58e6e53cca03a639ba2e.png)

---

<div class="post-metadata">

**Author:** ![Senthil](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/senthil/32/116238_2.png) [@Senthil](https://meta.discourse.org/u/Senthil)\
**Post date:** [2015年十月2日 16:31 UTC](https://meta.discourse.org/t/uploading-images-stalls-and-does-not-translate-to-img-src-tag/34021/3 "2015-10-02T16:31:10Z")

</div>

The user guide says

**File Uploads**

_Basic image uploads work fine out of the box stored locally, provided you have adequate disk space._

I have adequate disk space, but the image upload has not been working out of box for me. Any troubleshooting suggestions?

This is infact, my second discussion on the same topic ([https://meta.discourse.org/t/s3-uploads-howto/30559](https://meta.discourse.org/t/s3-uploads-howto/30559)) and unfortunately, I haven’t gotten to my goal yet, which it to upload images.

---

<div class="post-metadata">

**Author:** ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)\
**Post date:** [2015年十月2日 16:58 UTC](https://meta.discourse.org/t/uploading-images-stalls-and-does-not-translate-to-img-src-tag/34021/4 "2015-10-02T16:58:53Z")

</div>

I don’t have a clue if it makes any difference or even if it is proper, but might the extension being “jpg” and the type being “jpeg” be the problem?

Have you tried using different images?

---

<div class="post-metadata">

**Author:** ![Senthil](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/senthil/32/116238_2.png) [@Senthil](https://meta.discourse.org/u/Senthil)\
**Post date:** [2015年十月2日 17:20 UTC](https://meta.discourse.org/t/uploading-images-stalls-and-does-not-translate-to-img-src-tag/34021/5 "2015-10-02T17:20:46Z")

</div>

Thanks for the response. It was the file extension. I tried with .png and it still stalled at the same place. I opened Chrome Developer Tools to find what’s happening and it looks like I have some setting where I have to end my hostname with /.

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

---

<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:** [2015年十月2日 22:48 UTC](https://meta.discourse.org/t/uploading-images-stalls-and-does-not-translate-to-img-src-tag/34021/6 "2015-10-02T22:48:25Z")

</div>

looks like a missing `/` next to your hosname somewhere… you on latest?

---

<div class="post-metadata">

**Author:** ![Senthil](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/senthil/32/116238_2.png) [@Senthil](https://meta.discourse.org/u/Senthil)\
**Post date:** [2015年十月3日 00:52 UTC](https://meta.discourse.org/t/uploading-images-stalls-and-does-not-translate-to-img-src-tag/34021/7 "2015-10-03T00:52:32Z")

</div>

Yup, I am trying to hunt down where exactly it is missing ‘/’. I am on 1.5.0.beta1, which is the latest. thanks.

---

<div class="post-metadata">

**Author:** ![Senthil](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/senthil/32/116238_2.png) [@Senthil](https://meta.discourse.org/u/Senthil)\
**Post date:** [2015年十月3日 01:35 UTC](https://meta.discourse.org/t/uploading-images-stalls-and-does-not-translate-to-img-src-tag/34021/8 "2015-10-03T01:35:07Z")

</div>

Solve it. It was improper customization. In body tag in customizations, I had a wrong tag. Surprised at the effect this caused. Thank you for the support. Let’s close this thread.

---

<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:** [2015年十月3日 02:32 UTC](https://meta.discourse.org/t/uploading-images-stalls-and-does-not-translate-to-img-src-tag/34021/9 "2015-10-03T02:32:06Z")

</div>


