permissions in new uploader
Merge pull request #832 from simod/issue-778

fix issue 778