proper response in case the upload fails - e.g. in case permissions on shared folders are not enough
in case the file is new isCreatable() is checked
in case the file exists isUpdatable() is checked
use dir to determine the proper permissions
Merge pull request #4357 from owncloud/fixing-4341-stable5

Enable file upload to shared folder with create permission only