# Bug File image Upload in getcockpit 2.4.0

**URL:** <https://discourse.getcockpit.com/t/bug-file-image-upload-in-getcockpit-2-4-0/2731>\
**Category:** Uncategorized\
**Created:** [March 10, 2023, 1:52am UTC](https://discourse.getcockpit.com/t/bug-file-image-upload-in-getcockpit-2-4-0/2731 "2023-03-10T01:52:34Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![creativeplusplus](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.getcockpit.com/creativeplusplus/32/844_2.png) [@creativeplusplus](https://discourse.getcockpit.com/u/creativeplusplus)\
**Post date:** [March 10, 2023, 1:52am UTC](https://discourse.getcockpit.com/t/bug-file-image-upload-in-getcockpit-2-4-0/2731/1 "2023-03-10T01:52:34Z")

</div>

Hi Arthur,

in Apache server getcockpit 2.3.7 assets upload jpeg seems fine

but in getcockpit 2.4.0 assets upload jpg or png failed to upload but pdf can upload

both on same server

 ![Screenshot 2023-03-10 at 08.51.40](https://canada1.discourse-cdn.com/flex030/uploads/getcockpit/original/2X/a/ab0a3d59628319d408e178acc0b8f65384e32c17.jpeg)

---

<div class="post-metadata">

**Author:** ![artur](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.getcockpit.com/artur/32/4_2.png) [@artur](https://discourse.getcockpit.com/u/artur)\
**Post date:** [March 10, 2023, 11:16pm UTC](https://discourse.getcockpit.com/t/bug-file-image-upload-in-getcockpit-2-4-0/2731/3 "2023-03-10T23:16:29Z")

</div>

Looking at the console, you get a 500 error back. Can you please check your error logs for more details?

---

<div class="post-metadata">

**Author:** ![creativeplusplus](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.getcockpit.com/creativeplusplus/32/844_2.png) [@creativeplusplus](https://discourse.getcockpit.com/u/creativeplusplus)\
**Post date:** [March 11, 2023, 6:37am UTC](https://discourse.getcockpit.com/t/bug-file-image-upload-in-getcockpit-2-4-0/2731/4 "2023-03-11T06:37:53Z")

</div>

Hm… i resinstall getcockpit 2.4.0 now seems fine the image upload thanks Artur for the reply

but if I manualy copy storage folder for data and sqlite upload error again

 ![Screenshot 2023-03-11 at 14.05.31](https://canada1.discourse-cdn.com/flex030/uploads/getcockpit/original/2X/9/99870ced127f85452a0563179220a78d44767486.png)

---

<div class="post-metadata">

**Author:** ![artur](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.getcockpit.com/artur/32/4_2.png) [@artur](https://discourse.getcockpit.com/u/artur)\
**Post date:** [March 14, 2023, 9:30pm UTC](https://discourse.getcockpit.com/t/bug-file-image-upload-in-getcockpit-2-4-0/2731/5 "2023-03-14T21:30:44Z")

</div>

Strange 🤔 I can’t verify the issue 🙁

---

<div class="post-metadata">

**Author:** ![creativeplusplus](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.getcockpit.com/creativeplusplus/32/844_2.png) [@creativeplusplus](https://discourse.getcockpit.com/u/creativeplusplus)\
**Post date:** [March 15, 2023, 4:30am UTC](https://discourse.getcockpit.com/t/bug-file-image-upload-in-getcockpit-2-4-0/2731/6 "2023-03-15T04:30:00Z")

</div>

I think its the server issue abstratcadapter.php is missing with the fresh install and when I upload mannualy it cannot upload strange issue  
thanks artur

 ![Screenshot 2023-03-15 at 11.21.13](https://canada1.discourse-cdn.com/flex030/uploads/getcockpit/original/2X/b/b9f75f4737e04b04139cbc299a80482f25a8e5a7.jpeg)

I report to the server and its a remove automaticaly abstratcadapter.php because php exploit but I ask for whitelist its ok now
