Name of file saved through angular ui

In my angular application, there is a feature to download a file.

When the user clicks on the file download button, the “save as” window opens up, and the user can then set a name to that file, and save it.

I want to know the name of that file that user set.

I know that the full path can not be retrived as mentioned in this -> Get browser download path with javascript, and i don’t need the full path, I just need the file name.

Is there any way?