@fallback2
through 25 years of messing with computers, I’ve learnt that software is frustrating. I’ve also learnt some techniques on how to solve problems, let’s see if we can work this out with you.
Step 1) When you try to upload the file, can you see an error in any log files?
For me (detailed answer a few posts back), I could see an error in /var/log/nginx/error.log but you can also look for PHP logs, or apache logs.
Reasons: There are a myriad of steps involved in uploading an image. The error message displayed may not always be helpful and the fundamental problem could be showing in error logs for the the software (wordpress) but also things wordpress is using behind the scenes (nginx/apache, mysql, firewall running on the server, external firewalls)
If you can’t find the logs and haven’t found their location by google searches share here your system setup (OS, web server, etc) and maybe someone will know where they are.
Once you’ve found an error, try googling it and if you’re stuck, post that here too.
Between steps, something else worth trying is working to the simplest possible solution. For me, my issue was images that were over a certain size being stopped first by nginx, and then by PHP, before wordpress had even got to see them.
Try uploading small images.
Try uploading different types (jpg, png, and others)
Try uploading files instead of images
Try sourcing from another server instead of uploading (wordpress has an option to get the image from a url, you can use this one: https://www.rkbb.co.uk/wp-content/uploads/2021/06/hero2.jpg
It’s small enough it should hit any file size limits.
HTH
Steve