- Amazon S3 SDK: Change filename on download?
- $s3 = new AmazonS3();
- $opt = array('response' => array('Content-Disposition' => 'attachment; "filename=newname.txt"'));
- $url = $s3->get_object_url('bucket', 'file.txt', '5 minutes', $opt));
- $opt = array('response' => array('content-disposition' => 'attachment; "filename=newname.txt"'));