title: Downloading file from url and saving to blob
body: <p>I have an azure function that downloads a file to a temporary file path and then saves the temp file to a blob. I have two questions:</p>
  
  <p>1) Is there a way to manage the temporary files created by the function
  Path.GetTempFileName(). i.e after the scope of the function delete the temp filename?</p>
  
  <p>2) Is there a better practice for downloading files from a url to a blob?</p>
  
  <pre><code>var filename = Path.GetTempFileName();
  WebClient myWebClient = new WebClient();
  myWebClient.DownloadFile(url, filename);
  using (var fileStream = System.IO.File.OpenRead(filename))
  {
      blob.UploadFromStream(fileStream);
  }
  </code></pre>