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