Unable to create directory uploads
When using WordPress and you trying to update a blog post you might come across the error message “Unable to create directory uploads/year/month”. Now this could be a permissions issue and you need to ensure that the direcory ownership is good, as described in How to Install WordPress and Nginx on Debian 12 but if you have recently migrated your wordpress site from shared hosting, the cause and fix could be much simpler
Store Uploads in this Folder
The issue can be because your shared hosting provider used a longer and full path name for the uploads directory rather than the default relative one. To check for this error, navigate to Settings, then Media and if you see a long path name, reset it to the default wp-content/uploads.
With the path reset you should be able to continue uploading media to your wordpress site.