title: FastApi python aws s3 can't view image from url
body: <p>My image is uploading aws s3 bucket but can't view any image from url. Through I pass <code>ExtraArgs={&quot;ACL&quot;:&quot;public-read&quot;}</code> but not understanding why it's not available publicly. here is my code:</p>
  <pre><code>@app.post(&quot;/post_ads&quot;)
  async def create_upload_files(title: str = Form(),body: str = Form(), db: Session = Depends(get_db), files: list[UploadFile] = File(description=&quot;Multiple files as UploadFile&quot;)):
  for file in files:
          if len(main_image_list) &lt;= 5: 
                  im = Image.open(file.file)
                  im = im.convert(&quot;RGB&quot;)
                  im_io = BytesIO()
                  im = im.save(im_io, 'JPEG', quality=50)  
                  s3 = boto3.resource(
                                  's3',
                                  aws_access_key_id =   aws_access_key_id,
                                  aws_secret_access_key = aws_secret_access_key
                              )
                  bucket = s3.Bucket(aws_bucket_name)
                  im_io.seek(0) 
                  bucket.upload_fileobj(im_io,file.filename,ExtraArgs={&quot;ACL&quot;:&quot;public-read&quot;})
     
  </code></pre>
  <p>see the screenshot. When I am trying to view image from url I am getting this:
  <a href="https://i.stack.imgur.com/OoVnK.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/OoVnK.png" alt="enter image description here" /></a></p>