OwnCloud “You don’t have permission to upload or create files here.” – Quick Tip

You don't have permission to upload or create files here.

You don’t have permission to upload or create files here.

 

In an OwnCloud server if you change the permissions of an external drive to give r/w access (in my case chgrp www-data) and OwnCloud isn’t updating those permissions you can do this. In your MySQL database find your external storage in oc_storages and make note of the numeric id. Then run this query “Delete from oc_filecache where storage = numeric_id” replacing numeric_id with the one you found in the oc_storages table.

My Setup:
Ubuntu 14.04 Server
OwnCloud 7.0.2
MySQL 5.5.38
Apache 2.4.7