# Can't upload photo

**URL:** https://community.openboxes.com/t/cant-upload-photo/892
**Category:** bugs
**Created:** [February 22, 2024, 10:52am UTC](https://community.openboxes.com/t/cant-upload-photo/892 "2024-02-22T10:52:00Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![David\_Douma](https://community.openboxes.com/user_avatar/community.openboxes.com/david_douma/32/326_2.png) [@David\_Douma](https://community.openboxes.com/u/David_Douma)
#### Post date: [February 22, 2024, 10:52am UTC](https://community.openboxes.com/t/cant-upload-photo/892/1 "2024-02-22T10:52:00Z")

</div>

![image](https://community.openboxes.com/uploads/default/original/1X/2666d0fd4cfd612630e8d4c3c8ee0af656d97dd8.png)

I get an error if I try to add an image, file size is 44kb.

---

<div class="post-metadata">

### Author: ![knagel](https://community.openboxes.com/letter_avatar_proxy/v4/letter/k/f475e1/32.png) [@knagel](https://community.openboxes.com/u/knagel)
#### Post date: [February 22, 2024, 6:41pm UTC](https://community.openboxes.com/t/cant-upload-photo/892/2 "2024-02-22T18:41:18Z")

</div>

I think the only way to deal with this is to compress the file down to 1MB. There are some online file compressors you can use for free - here is one: [https://www.compress2go.com/](https://www.compress2go.com/). You could also take a screenshot of the image and save as jpg.

I will let Justin comment if there is any way to successfully upload a larger file size.

---

<div class="post-metadata">

### Author: ![David\_Douma](https://community.openboxes.com/user_avatar/community.openboxes.com/david_douma/32/326_2.png) [@David\_Douma](https://community.openboxes.com/u/David_Douma)
#### Post date: [February 23, 2024, 11:24am UTC](https://community.openboxes.com/t/cant-upload-photo/892/3 "2024-02-23T11:24:48Z")

</div>

Hello,

The file size is already 44 kb…

---

<div class="post-metadata">

### Author: ![Artur](https://community.openboxes.com/user_avatar/community.openboxes.com/artur/32/480_2.png) [@Artur](https://community.openboxes.com/u/Artur)
#### Post date: [February 23, 2024, 3:48pm UTC](https://community.openboxes.com/t/cant-upload-photo/892/4 "2024-02-23T15:48:31Z")

</div>

Hi @David_Douma,

IIIRC you are using 0.9.x version of OB. On which page you are trying to upload this photo? It will be easier to reproduce it for me.

We have some discrepancies in allowed file sizes, could you tell me if you have set up the `grails.controllers.upload.maxFileSize` and `grails.controllers.upload.maxRequestSize` in the config? By default, if not overwritten, the accepted file size is 2MB (2097152 bytes), but some features accept only 1MB. So it’s weird that your 44kB is not accepted.

---

<div class="post-metadata">

### Author: ![David\_Douma](https://community.openboxes.com/user_avatar/community.openboxes.com/david_douma/32/326_2.png) [@David\_Douma](https://community.openboxes.com/u/David_Douma)
#### Post date: [February 23, 2024, 10:35pm UTC](https://community.openboxes.com/t/cant-upload-photo/892/5 "2024-02-23T22:35:26Z")

</div>

Hi Arthur,

Since when is there a version 0.9? Github only provides 0.8.23 and i’m using that version.

---

<div class="post-metadata">

### Author: ![Artur](https://community.openboxes.com/user_avatar/community.openboxes.com/artur/32/480_2.png) [@Artur](https://community.openboxes.com/u/Artur)
#### Post date: [February 26, 2024, 2:35pm UTC](https://community.openboxes.com/t/cant-upload-photo/892/6 "2024-02-26T14:35:28Z")

</div>

@David_Douma sorry, I confused you with someone else that I shared the 0.9.x version’s war recently here on the forum. The 0.9.x has not yet been released to the public but will be soon. Sorry for the confusion. I will investigate the issue with your app setup. Could you answer this part

> On which page you are trying to upload this photo? It will be easier to reproduce it for me.

and give me your steps to reproduce the issue?

---

<div class="post-metadata">

### Author: ![David\_Douma](https://community.openboxes.com/user_avatar/community.openboxes.com/david_douma/32/326_2.png) [@David\_Douma](https://community.openboxes.com/u/David_Douma)
#### Post date: [February 27, 2024, 7:19am UTC](https://community.openboxes.com/t/cant-upload-photo/892/7 "2024-02-27T07:19:42Z")

</div>

Hello Artur,

It seems the problem has fixed it self… strange.  
Anyhow thnx for the help!
