title: Upload all contents from a certain directory to s3
body: <p>This is probably a simple question for some, but I couldn't find answers online.</p>
  <pre><code>try {
      $result = $s3-&gt;putObject([
          'Bucket' =&gt; $bucketName,
          'Key'    =&gt; 'place/',
          'Body'   =&gt; fopen(&quot;place/***everything in here***&quot;, 'r'),
          
         
          //'ACL'    =&gt; 'public-read',
      ]);
  }
  
  </code></pre>
  <p>Is this even possible? Otherwise, I can just make a foreach loop or something like that. If anyone has any ideas, that would be great.</p>