# Issue with the image upload

**URL:** https://meta.discourse.org/t/issue-with-the-image-upload/197818
**Category:** Support
**Created:** [July 22, 2021, 1:42am UTC](https://meta.discourse.org/t/issue-with-the-image-upload/197818 "2021-07-22T01:42:10Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![hbin1990](https://avatars.discourse-cdn.com/v4/letter/h/439d5e/32.png) [@hbin1990](https://meta.discourse.org/u/hbin1990)
#### Post date: [July 22, 2021, 1:42am UTC](https://meta.discourse.org/t/issue-with-the-image-upload/197818/1 "2021-07-22T01:42:10Z")

</div>

I have followed the steps to set up my first discourse blog: [https://xiaodingdangbbs.com/](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?

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [July 22, 2021, 2:02am UTC](https://meta.discourse.org/t/issue-with-the-image-upload/197818/2 "2021-07-22T02:02:24Z")

</div>

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

```plaintext
#ssh into the server

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

```

---

<div class="post-metadata">

### Author: ![hbin1990](https://avatars.discourse-cdn.com/v4/letter/h/439d5e/32.png) [@hbin1990](https://meta.discourse.org/u/hbin1990)
#### Post date: [July 22, 2021, 2:05am UTC](https://meta.discourse.org/t/issue-with-the-image-upload/197818/3 "2021-07-22T02:05:29Z")

</div>

That’s exactly the issue. Thanks very much!

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [August 21, 2021, 2:05am UTC](https://meta.discourse.org/t/issue-with-the-image-upload/197818/4 "2021-08-21T02:05:48Z")

</div>

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