Save file name and print it in other view

Hello!!! I created a site where I can validate registers with login, passwords, admins, users etc. When you are loged in you might be able to validate certain tipes of registers. So I created an input to select the files and then, if the files are correct, they are validated. Normaly when you create an input this is what shows up:

Captura de tela de 2020-03-02 17-30-05

How can I pick the file name and save in other view? For example I have a view called history and there is where I am going to store those names. How am I supposed to do that?