Hello and thanks for looking my question.
On Drupal 7 I use this hook hook_file_presave() for change file name.
function mymodule_file_presave($file) {
$parts = pathinfo($file->filename);
$file->filename = $file->uid . $file->timestamp . '.' . $parts['extension'];
}
But how to do it on Drupal 8.1.x? Programmatically or module ways or something else?