It would be very useful to differentiate the filename and the name of a document. Typically, a document has a name (for example My product spec'), which can be different of the filename used to 'contain' this document (my_prod_spec_v1.doc) for example.
It requires (i guess) to add 1 text field to the document table in the database and to manage it in the interface. Optionnally, if the 'Document name' field is empty when submitting a new doc, then it takes the filename value.
This is very common in document management system and ensure that the name displayed in the web interface is 'human readable'.