modifying uploadFile to handle types that can't be stored in Precog yet