Should this be $permissions instead of $fileId ?