Added Permissions to File API