Uploading permissions hook