title: Xamarin.Forms Saving file in filesystem
body: <p>I try to download file from web and save to any of Environment.SpecialFolder locations. No matter of what approach I try - I always get <br/><br/><b>System.UnauthorizedAccessException: 'Access to the path 'any possible path I try (even beyond Environment.SpecialFolder)' is denied.'</b>
  <br/><br/>I tried accessing filesystem on UWP and Android - both same exception.<br/><br/> What I tried with no luck so far:
  <li>I tried to do this via PCL and via each platform individually using DependencyService.</li>
  <li>Checked if folders are read-only</li>
  <li>Started Visual Studio with administrator privileges</li>
  <li>Changed Debug to Release</li>
  <li>Tried Xam.Plugins.DownloadManager</li>
  <br/>
  Code sample:</p>
  
  <pre><code>var webClient = new WebClient();
  webClient.DownloadDataCompleted += (s, e) =&gt; {
     var bytes = e.Result;
     string documentsPath = Environment.GetFolderPath(Environment.SpecialFolder.MyPictures);
     string localFilename = "downloaded.jpg";
     string localPath = Path.Combine(documentsPath, localFilename);
     File.WriteAllBytes(localPath, bytes);
  };
  webClient.DownloadDataAsync(new Uri(url));
  </code></pre>