Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 77050

File Download using webclient.

$
0
0

I am trying to download file from URL using webClient.DownloadFileAsync method. What path should i give to see the downloaded file in Downloads folder of my phone.
For android I am providing : string path =(string)Android.OS.Environment.GetExternalStoragePublicDirectory(Android.OS.Environment.DirectoryDownloads); which saves the file to /storage/emulated/0/Download/sampleFile I dont know how to access this folder.
For iOS I am provinding : Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments), fileName); this one saves the file in librray folder of my machine.

I need to show the downloaded files in downloads folder of my phone. Any Suggestions how to achieve the same. TIA. @JamesMontemagno @JohnMiller @adamkemp @AdamP


Viewing all articles
Browse latest Browse all 77050

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>