# Images cannot be uploaded

**URL:** <https://forum.mattermost.com/t/images-cannot-be-uploaded/16097>\
**Category:** Troubleshooting\
**Created:** [June 7, 2023, 4:27am UTC](https://forum.mattermost.com/t/images-cannot-be-uploaded/16097 "2023-06-07T04:27:02Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![H.Furukawa](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/h.furukawa/32/6899_2.png) [@H.Furukawa](https://forum.mattermost.com/u/H.Furukawa)\
**Post date:** [June 7, 2023, 4:27am UTC](https://forum.mattermost.com/t/images-cannot-be-uploaded/16097/1 "2023-06-07T04:27:02Z")

</div>

I uploaded the JPG file of 52kb to ”Profile Picture", errored “Couldn’t upload profile image”.

 ![profile_err2](https://us1.discourse-cdn.com/flex020/uploads/mattermost/original/2X/d/daa0021bb66fd03c88796b363222a36c9d5381d5.png)

---

<div class="post-metadata">

**Author:** ![H.Furukawa](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/h.furukawa/32/6899_2.png) [@H.Furukawa](https://forum.mattermost.com/u/H.Furukawa)\
**Post date:** [June 7, 2023, 5:03am UTC](https://forum.mattermost.com/t/images-cannot-be-uploaded/16097/2 "2023-06-07T05:03:09Z")

</div>

The screen looks like this when I select an image.

 ![profile_err1](https://us1.discourse-cdn.com/flex020/uploads/mattermost/original/2X/7/750fa30311d6c14595ce862506830aece3d5fe9f.png)

---

<div class="post-metadata">

**Author:** ![H.Furukawa](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/h.furukawa/32/6899_2.png) [@H.Furukawa](https://forum.mattermost.com/u/H.Furukawa)\
**Post date:** [June 8, 2023, 4:15am UTC](https://forum.mattermost.com/t/images-cannot-be-uploaded/16097/3 "2023-06-08T04:15:07Z")

</div>

I have seen past posts from similar people who have solved the problem and those who have solved it have reinstalled it, but since I have already started using it, is there any other way to solve this problem other than reinstalling it?

---

<div class="post-metadata">

**Author:** ![agriesser](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/agriesser/32/5644_2.png) [@agriesser](https://forum.mattermost.com/u/agriesser)\
**Post date:** [June 8, 2023, 6:07pm UTC](https://forum.mattermost.com/t/images-cannot-be-uploaded/16097/4 "2023-06-08T18:07:25Z")

</div>

This can have multiple reasons - can you confirm that the permissions on the filesystem are correct and all files and folders below the `/opt/mattermost` folder (or whatever your installation path is) is owned by the `mattermost` user?

You can run the following command to change the permissions:

```auto
chown -R mattermost. /opt/mattermost

```

Try again then, if it still doesn’t work, please check your `/opt/mattermost/logs/mattermost.log` file for further hints.

---

<div class="post-metadata">

**Author:** ![H.Furukawa](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/h.furukawa/32/6899_2.png) [@H.Furukawa](https://forum.mattermost.com/u/H.Furukawa)\
**Post date:** [June 9, 2023, 12:01am UTC](https://forum.mattermost.com/t/images-cannot-be-uploaded/16097/5 "2023-06-09T00:01:09Z")

</div>

Hi, agriesser

Your advice and instructions worked!  
Thank you for everything!
