uploading file to specific folder in S3 using boto3
<p>Everything with my code works. The only pitfall I am currently facing is that I cannot specify the folder within the S3 bucket that I would like to place my file in. Here is what I have:</p>

<pre><code>s3.meta.client.upload_file('/tmp/'+filename, '&lt;bucket-name&gt;', filename)
</code></pre>

<p>I have tried both:</p>

<pre><code>s3.meta.client.upload_file('/tmp/'+filename, '&lt;bucket-name&gt;/folder/', filename)
</code></pre>

<p>and:</p>

<pre><code>s3.meta.client.upload_file('/tmp/'+filename, '&lt;bucket-name&gt;', '/folder/'+filename)
</code></pre>

<p>if anyone has any tips on how to direct this to a specific folder (if this is possible) please let me know!</p>