Uploading Images stalls and does not translate to img src tag

AI-generated summary

User Senthil reported that image uploads on their Discourse 1.5.0.beta1 instance were stalling and failing to generate valid <img src> tags, even when S3 was disabled. Despite following the official S3 setup guide and having adequate disk space, uploads appeared to complete (returning 200 OK) but the images did not render. Senthil noted this was their second attempt to resolve the issue. Mittineague suggested checking file extensions, but Senthil confirmed the issue persisted with PNG files and identified a potential hostname configuration error involving a missing trailing slash via Chrome Developer Tools. sam confirmed this suspicion, asking if the user was on the latest version. Ultimately, Senthil resolved the problem, discovering that an improper customization in the body tag was the root cause. The thread was subsequently closed.

I am running 1.5.0.beta1 on Digital Ocean Instance.

Set up file and image uploads to S3 - 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

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.

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) and unfortunately, I haven’t gotten to my goal yet, which it to upload images.

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?

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 /.

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

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

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.