title: AWS S3 force download of file when preSignedRequest link clicked
body: <p>I am using AWS S3 to generate a createPresignedRequest() to a file. When the user clicks on the link it opens in a new window, I am wanting it to force download. Is there anything I can do to enable this feature. I have looked at the docs but I am not seeing what I need. </p>
  
  <p>Here's my code to create the url: </p>
  
  <pre><code> $s3 = new S3Client([
        'credentials'=&gt;[
             'key'=&gt;$key,
             'secret'=&gt;$secret,
        ],
        'region'=&gt;'us-west-2',
        'version'=&gt;'2006-03-01',
   ]);
   $cmd = $s3-&gt;getCommand('GetObject', [
        'Bucket' =&gt; $buckname,
        'Key'    =&gt; $file,
   ]);
   $request = $s3-&gt;createPresignedRequest($cmd, '+7 days');
   $secureUrl = (string) $request-&gt;getUri();
   echo $secureUrl; // When the user clicks on the link - how can I force download the file instead of open in a new window.
  </code></pre>