I'm working on a Word add-in with a form for selecting SharePoint Online documents, using the REST API.
At the moment, I was able to download the file directly by the URL following this MSDN article:
However, this downloads the file with the name
$value instead of the correct filename. Is it possible to get the actual name through REST?