When transferring a site from hosting to hosting, I can't say this is very often, but let's say some 40-50% chances of getting this error when uploading images. The correct error is:
Unable to create directory uploads/20XX/XX. Is its parent directory writable by the server?Solving this error is quite simple. In your wp-config.php file, add the following line of code:
define( 'UPLOADS', 'wp-content/uploads' );You can find your wp-config.php file in the main folder of your domain:
If it is the only domain on the hosting account, then it is located in cPanel > File Manager > public_html
If it is an additional (addon) domain, then go to cPanel > Addon Domains > click on the link under the Document Root section (there is also a pencil icon) and it will directly open the File Manager with the folder and you will immediately see it in the list of files wp-config.php

