title: Downloading Files From S3 To Users Computer
body: <p>I have the following view in my Django project</p>
  <pre><code>class download_mscore_software(APIView):
      def get(self, request):
          session = boto3.Session(
              aws_access_key_id=settings.AWS_ACCESS_KEY_ID,
              aws_secret_access_key=settings.AWS_SECRET_ACCESS_KEY
          )
          s3 = session.resource('s3')
  
          clancy = s3.Bucket(&quot;magpie-bixly-test&quot;).download_file(&quot;Clancy-Gorillaz.jpg&quot;, &quot;Clancy-Gorillaz.jpg&quot;)
  </code></pre>
  <p>This works to download the file into my project directory.  However, I need the file to download to the users computer.  How do I change this so that this happens?  I tried this:</p>
  <pre><code>clancy = s3.Bucket('magpie-bixly-test').download_file('Clancy-Gorillaz.jpg', 'Users/Downloads/Clancy-Gorillaz.jpg')
  </code></pre>
  <p>but I get an error saying that there is no such directory.  The same happens if I leave the file name off the end like this.</p>
  <pre><code>clancy = s3.Bucket('magpie-bixly-test').download_file('Clancy-Gorillaz.jpg', 'Users/Downloads')
  </code></pre>