How to change the name of uploaded file in my custom Entity?
Please refer the below articles it will be helpful for you..

How do I change the uploaded file name after the node has been saved?

Changing file name on upload