title: How to download files from OneDrive
body: <p>I am looking to download my files in public folder from One Drive, but it doesn't download the files. 
  Here is the scenario:</p>
  
  <p>In public folder I have another folder with multiple files in it and is accessible widely.
  for test purpose I have shared all the files in public folder (I don't if it's proper way of sharing it).</p>
  
  <h2>The following links are provided for me to download the file:</h2>
  
  <ol>
  <li>From shared folder link <a href="https://onedrive.live.com/redir?resid=DBBC281099F4FE69!646&amp;authkey=!AGRCGuw8Y2_p9mA&amp;ithint=folder%2c.mp3" rel="noreferrer">https://onedrive.live.com/redir?resid=DBBC281099F4FE69!646&amp;authkey=!AGRCGuw8Y2_p9mA&amp;ithint=folder%2c.mp3</a> </li>
  <li>From public folder link <a href="https://onedrive.live.com/redir?resid=DBBC281099F4FE69%21646" rel="noreferrer">https://onedrive.live.com/redir?resid=DBBC281099F4FE69%21646</a></li>
  <li>Direct link <a href="http://1drv.ms/1z9XlW6" rel="noreferrer">http://1drv.ms/1z9XlW6</a> -</li>
  </ol>
  
  <p>I am using <code>BackgroundTransferRequest</code> to download the file using below code:</p>
  
  <pre><code>string filePathToDownload = string.Empty, fileName = "111.mp3";
  filePathToDownload = "http://1drv.ms/1z9XlW6";
  
  Uri transferUri = new Uri(Uri.EscapeUriString(filePathToDownload), UriKind.RelativeOrAbsolute);
  BackgroundTransferRequest transferRequest = new BackgroundTransferRequest(transferUri);
  transferRequest.Method = "GET";
  transferRequest.TransferPreferences = TransferPreferences.AllowCellularAndBattery;
  
  Uri downloadUri = new Uri(DataSource.TEMPDOWNLOADLOCATION + fileName, UriKind.RelativeOrAbsolute);
  transferRequest.DownloadLocation = downloadUri;
  transferRequest.Tag = fileName;
  </code></pre>
  
  <p>The file is 300Kb, but this only downloads 6 Kb.</p>
  
  <p>How can I directly download the file from the links above (any of them)?</p>
  
  <p>thanks!</p>