title: AWS boto3 view file in browser
body: <p>For AWS S3 and Python/Flask/Boto3, how do I view my file in my browser instead of directly downloading it?</p>
  
  <p>I have something like this:</p>
  
  <pre><code>@app.route('/dl')
  def dl():
    bucketName = "uw-note-share"
    key = "question4.png"
    s3.Bucket(bucketName).download_file(key, 'my_local_image.jpg')
    return "truu"
  </code></pre>
  
  <p>But this <strong>downloads</strong> the file into my disk location, what if I just want to view the file in the browser like a image link online?</p>
  
  <p>Thanks!</p>