Source file from frontend

How to write line of code to get source file as input in the from frontend. file may be pdf or any type.

Are you trying to modify a file from a form input field?

You need to take time to make the question specific and explain what you’re trying to do.