Usage
deleteObject
/**
* @bucketName The bucket name the object resides in.
* @uri The file object uri to delete.
*
* @return Returns true if the object is deleted successfully.
*/
boolean function deleteObject( required string bucketName = variables.defaultBucketName, required string uri );downloadObject
/**
* @bucketName The bucket in which to store the object.
* @uri The destination uri key to use when saving the object.
* @filepath The file path write the object to, if no filename given filename from uri is used.
* @HTTPTimeout The HTTP timeout to use.
* @getAsBinary Treat the response body as binary instead of text.
* @encryptionAlgorithm The server side encryption algorithm to use. Usually "AES256". Not needed if using custom encryptionKey
* @encryptionKey The base64 encoded AES 356 bit key for server side encryption.
*
* @return The object's eTag.
*/
struct function downloadObject(
required string bucketName = variables.defaultBucketName,
required string uri,
required string filepath,
numeric HTTPTimeout = variables.defaultTimeOut,
boolean getAsBinary = "no",
string encryptionAlgorithm = variables.defaultEncryptionAlgorithm,
string encryptionKey = variables.defaultEncryptionKey
)getAccessControlPolicy
getBucket
getBucketLocation
getBucketVersionStatus
getFileMimeType
getObjectInfo
listBuckets
objectExists
putBucket
putObject
putObjectFile
setBucketVersionStatus
Last updated
Was this helpful?