Rename file uploaded

Rename file uploaded

In a Form, how to rename a file uploaded.

Field 1: Name ..............John
Field 2: Upload file .......cat.jpg (student assignmement)

record: John ........John_cat.jpg

Thanks !!!