Retrieves the file name from a given URL.
The URL from which to retrieve the file name.
Optional
Indicates whether the file name should include the extension.
Retrieves the file name from a given URL.