# ‘File could not be uploaded’ on Server

**URL:** <https://forum.getkirby.com/t/file-could-not-be-uploaded-on-server/34267>\
**Category:** Questions\
**Tags:** v4\
**Created:** [June 17, 2025, 6:59pm UTC](https://forum.getkirby.com/t/file-could-not-be-uploaded-on-server/34267 "2025-06-17T18:59:17Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ponchoelastic](https://avatars.discourse-cdn.com/v4/letter/p/4bbf92/32.png) [@ponchoelastic](https://forum.getkirby.com/u/ponchoelastic)\
**Post date:** [June 17, 2025, 6:59pm UTC](https://forum.getkirby.com/t/file-could-not-be-uploaded-on-server/34267/1 "2025-06-17T18:59:17Z")

</div>

I’m unable to upload any files through the panel when the website is running on the server. This is surprising because it was working before, but now I’m getting an error.

In the browser console, I see this message:￼  
`{"status":"error","message":"Unauthenticated","code":401,"exception":"Kirby\\Exception\\AuthException","key":"error.auth","file":"\/kirby\/config\/api\/authentication.php","line":14,"details":[],"route":"(account|pages\/[^\/]+|site|users\/[^\/]+)\/files"}`

I’ve checked other forum posts and my PHP settings are:

- max\_execution\_time: -1
- memory\_limit: 4000M
- post\_max\_size: 512M
- upload\_max\_filesize: 512M

Site details:

- PHP 8.1.32
- Kirby 4.8.0
- Server: Apache

Thanks in advance

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [June 17, 2025, 7:07pm UTC](https://forum.getkirby.com/t/file-could-not-be-uploaded-on-server/34267/2 "2025-06-17T19:07:34Z")

</div>

> [@ponchoelastic](#):
>
> This is surprising because it was working before

Before what (happened)?

In another thread, you had problems with a slow panel due to a bot creating users? What bot? One you created? Or rather a hacker that got access to your site?

---

<div class="post-metadata">

**Author:** ![ponchoelastic](https://avatars.discourse-cdn.com/v4/letter/p/4bbf92/32.png) [@ponchoelastic](https://forum.getkirby.com/u/ponchoelastic)\
**Post date:** [June 17, 2025, 7:15pm UTC](https://forum.getkirby.com/t/file-could-not-be-uploaded-on-server/34267/3 "2025-06-17T19:15:46Z")

</div>

This is a different site, different server 😕

Sorry, with “Before” I mean a few days/week ago.

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [June 18, 2025, 5:26am UTC](https://forum.getkirby.com/t/file-could-not-be-uploaded-on-server/34267/4 "2025-06-18T05:26:25Z")

</div>

If there is still enough disk space, and you didn’t make any changes, maybe the hosting provider did. In other cases with this error type of error message, it was for example caused by ModSecurity or the some CDN related security settings. I’d contact support.

---

<div class="post-metadata">

**Author:** ![ponchoelastic](https://avatars.discourse-cdn.com/v4/letter/p/4bbf92/32.png) [@ponchoelastic](https://forum.getkirby.com/u/ponchoelastic)\
**Post date:** [June 18, 2025, 3:26pm UTC](https://forum.getkirby.com/t/file-could-not-be-uploaded-on-server/34267/5 "2025-06-18T15:26:55Z")

</div>

I removed and created a new SSL certificate and is working again, not sure how is this can be related.
