Added method for getting the original name of a file before uploading