title: How to solve OS Error: Permission denied, errno = 13 in flutter
body: <p>I am new in Flutter. I want to store my document file into <strong>'/storage/emulated/0/Download/'</strong>. I have error about <code>Unhandled Exception: FileSystemException: Cannot open file, path = '/storage/emulated/0/Download/file.pdf' (OS Error: Permission denied, errno = 13)</code></p>
  
  <p>Here is my code:</p>
  
  <pre><code>void download() async {
  http.Response response = await http.post(url, headers: {"Accept": "application/json", HttpHeaders.authorizationHeader: 'Bearer}});
  
    File file = new File('/storage/emulated/0/Download/file.pdf');
    await file.writeAsBytes(response.bodyBytes);
  }
  </code></pre>