Issue with the image upload

I have followed the steps to set up my first discourse blog: https://xiaodingdangbbs.com/

However, I have an issue with the image upload. I have followed the instruction to change the limit to 20MB and confirmed on the server-side the discourse.conf in /etc/nginx is 20MB. However, it seems that I still have the issue uploading the image, even failed for a 900KB image. The only images I’m able to upload is under or around 150KB.

Also, when I click the “Upload image” button, some images with .png, .jpg extensions are greyed out although the extensions are correct and the sizes are under the limit. When I select them, nothing happens and no error shows up.

Any thoughts on how to fix this issue?

Your site is misconfigured for HTTPS. Can you try the following:

#ssh into the server

cd /var/discourse
./launcher enter app
rails c
SiteSetting.force_https = true
3 Likes

That’s exactly the issue. Thanks very much!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.