title: Upload file to AWS S3 using Boto3 with full access permissions
body: <p>Hi i need help in setting permissions to an object when uploading to S3. I want to make it public read/write.</p>
  
  <p>I have a function as follows.</p>
  
  <pre><code>def UploadFile(self, destFilePath, data):
          self._bucket.put_object(Key=destFilePath, Body=data, ACL='public-read-write')
  </code></pre>
  
  <p>When it runs, i have a permissions error.</p>
  
  <pre><code>ClientError: An error occurred (AccessDenied) when calling the PutObject operation: Access Denied
  </code></pre>