

However, with the URL you pasted the ID would be: 281099F4FE69!646 In general you shouldn't construct an ID, since it's possible the IDs will change in the future, and instead you should retrieve the ID from the service. To access your public folder from Live SDK, you need to either use Live SDK to get the folder-id for your public folder, or convert the IDs in the URL you copied into the format the Live SDK uses: folder. If your scenario doesn't mind asking the user to log in to OneDrive, then you can use the Live SDK to access these files. Those links are links to the web content that shows the files you have shared. How can I directly download the file from the links above (any of them)?īasically, you can't. The file is 300Kb, but this only downloads 6 Kb. TransferRequest.DownloadLocation = downloadUri Uri downloadUri = new Uri(DataSource.TEMPDOWNLOADLOCATION + fileName, UriKind.RelativeOrAbsolute) TransferRequest.TransferPreferences = TransferPreferences.AllowCellularAndBattery

Uri transferUri = new Uri(Uri.EscapeUriString(filePathToDownload), UriKind.RelativeOrAbsolute) īackgroundTransferRequest transferRequest = new BackgroundTransferRequest(transferUri) I am using BackgroundTransferRequest to download the file using below code: string filePathToDownload = string.Empty, fileName = "111.mp3" From shared folder link !646&authkey=!AGRCGuw8Y2_p9mA&ithint=folder%2c.mp3.The following links are provided for me to download the file: In public folder I have another folder with multiple files in it and is accessible widely.įor test purpose I have shared all the files in public folder (I don't if it's proper way of sharing it). I am looking to download my files in public folder from One Drive, but it doesn't download the files.
