I could not upload images on a new droplet created in Digital Ocean.

Specifications of the droplet: Ubuntu server running NGINX.

I ran the following script to change permissions of the uploads folder:

sudo chown -R www-data:www-data wp-content/uploads/