title: Boto3: upload file from base64 to S3
body: <p>How can I directly upload a base64 encoded file to S3 with boto3? </p>
  
  <pre><code>object = s3.Object(BUCKET_NAME,email+"/"+save_name)
  object.put(Body=base64.b64decode(file))
  </code></pre>
  
  <p>I tried to upload the base64 encoded file like this, but then the file is broken. Directly uploading the string without the base64 decoding also doesn't work.</p>
  
  <p>Is there anything similar to <code>set_contents_from_string()</code> from boto2? </p>