How to change uploaded file name after save node?
hook_entity_presave?

Description from the DocBlock:


  Act on an entity before it is created or updated.
  You can get the original entity object from $entity-&gt;original when it is an update of the entity.