Cannot upload to WordPress Media Library (in WordPress App)

“test.jpg” has failed to upload due to an error
The uploaded file could not be moved to /var/www/wordpress/wp-content/uploads/2014/06.

chown -R www-data:www-data /var/www/wordpress/wp-content/uploads
chmod -R 755 /var/www/wordpress/wp-content/uploads 

Leave a Reply

Your email address will not be published. Required fields are marked *