If you are receive the error Unable to create directory uploads/ on WordPress when you upload files
Below is the solution:
1. Set permission for the folder ‘777’ to the /uploads directory which comes under the wp-content/uploads
2. In the wp-config file add below – require_once(ABSPATH . ‘wp-settings.php’);
this : define(‘UPLOADS’, ‘wp-content/uploads’);
Reload the page and your uploads should work perfectly fine.