title: Download file and the user decides where to locate it
body: <p>I have this problem, I am looking for how to download an AWS Bucket file, but not download it on the client and decide where to save it, which is not working.</p>
  <pre class="lang-js prettyprint-override"><code>$S3Options = 
  [
      'version' =&gt; 'latest',
      'region' =&gt; 'us-east-1',
      'credentials' =&gt;[
          'key' =&gt; 'xxxxxxx',
          'secret' =&gt; 'xxxxxxxx'
      ],
      'scheme' =&gt; 'http'
  ];
  
  $s3 =  new Aws\S3\S3Client($S3Options);
  
  $getFile = $s3-&gt;getObject(
      [
          'Key' =&gt; 'xxxx/'.$archivo[1],
          'Bucket' =&gt; 'xxxxxxx',
  
      ]);
  
  $getFile = $getFile-&gt;toArray();
  file_put_contents($archivo[1],$getFile['Body']);
  </code></pre>