Attempting to get the file name from a REST api download link
I have a method that that recive a zip file from a REST api download link. However, the method that I use only manages to get the id of the file that I originally sent out.
This was my method to extract the filename from the api:
and my method to download the zipped file form the api
So for example if I called the method with
GetFilenameFromUrl(1627149);
it would return the id (1627149) instead if the default filename (ex. the filename received when putting the link https://api.chimu.moe/v1/download/1627149 in the browser). Is there an alternative way to get the zipped file similar to a browser?2 Replies