Added getUploadPermission and setUploadPermission