All of a sudden, a Kirby staging site I’ve been working with has stopped accepting most file uploads with the generic error “The file could not be uploaded”. (Running the latest version of Kirby 5 on PHP 8.3). I tried switching thumb generator to ImageMagick but that didn’t make a difference. I also nuked the media directory and confirmed permissions are set properly. My file blueprint is not set to limit anything and it is not resizing or otherwise modifying files as they get uploaded. Here’s the weirdest part… png and gif files upload without problem, but jpg, tiff, and pdf files do not. Any ideas what in the world would make something like this start happening seemingly at random?
Check if you get more info from the PHP or server error logs.
happening suddenly without any environment changes
Are you sure? Is the server under your control? If it is shared hosting, stuff like updates to the system can happen without you noticing.