‘File could not be uploaded’ on Server

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

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?

This is a different site, different server :confused:

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

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.

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