John Knox wrote:Do we need to save the file name as best practice or it is not needed???
It does depend to most extent on the use case(s), one of which could be if client says: "No, we uploaded file only once", but you have an evidence in database, that filename logo.png
was uploaded twice by the same client id, hence got overridden...
Thousands of reasons you'd want to store filename, and the same amount of reasons you wouldn't ever need it.