Enter filename when uploading

Hello everybody,
I need to create a form that, when the file is dragged, inserts the file name in another field so that, before inserting the record, the user can modify it as he likes.
How can I do?
Using the Ajax event I can’t.

Thank you!