Copies an object from one S3 (or S3-compatible) bucket to another (or to a different key in the same bucket).
s3Copy(srcBucketName, srcObjectName, trgBucketName [, trgObjectName, acl, location, accessKeyId, secretAccessKey, host, timeout])
→ returns void
lucee.s3.accesskeyid system property or environment variable.
lucee.s3.secretaccesskey system property or environment variable.
https://. Defaults to Amazon AWS.
10000srcBucket, srcObject, trgBucket and trgObject, and the secret key argument secretKey. Doesn't list location or timeout, so accessKeyId is the sixth argument.
Copies the object, keeping the same key in the target bucket.
s3Copy("src-bucket", "reports/q3.pdf", "trg-bucket");
Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.