Could anyone provide more description about "file upload"

Could anyone provide more description about "file upload"

Could anyone help me with this:

I have some files with name containing the date info.

I want to parse the filename of the file choosed by "file upload". How could I get the name of file?

When is the file name availiable? After I click the submit or just after I choose the file by browsing?

Thank you!
keplerzoho