Based on this PR #114, but also updated the phpunit tests.
Currently the code forces an ACL on the files, this doesn't work if the bucket has uniform access policies set. So this PR just checks whether the bucket has uniform access before setting the ACL.
Based on this PR #114, but also updated the phpunit tests.