Amazon S3 overhaul for OpenBD

Building on last weeks work with AmazonS3Write() function, I have just released a slew of updates and changes to the whole range of OpenBD functions designed to make it easier to work with Amazon’s S3.

The following functions have been updated with new functionality:

  • AmazonS3Write()
    Supports background uploads. Multi-part uploads (for larger files). Set storage class and ACL as part of same call.  Retry logic.  Callback CFC uploads. Amazon Server Side Encryption support.
  • AmazonS3Read()
    Amazon Server Side Encryption support.
  • AmazonS3Delete()
    Supports deleting of multiple files in a single request.

The below functions are new to the suite:

  • AmazonS3Copy()
    Copy a file to another location (including another bucket), setting the storage class and ACL in the process.
  • AmazonS3ChangeStorageClass()
    Changes the storage class of the given file.
  • AmazonS3BucketExists()
    Checks to see if a given bucket exists.
  • AmazonS3CreateBucket()
    Creates a new bucket.
  • AmazonS3DeleteBucket()
    Deletes a given bucket.
  • AmazonS3BucketSetACL()
    Sets the default ACL for the objects in this bucket.
  • AmazonS3BucketRequestPays()
    Flips the flag on who pays for the access to the files in the bucket.

These are available now as part of the OpenBD nightly release.

Amazon S3 overhaul for OpenBD

Improved AmazonS3 uploads with OpenBD

I have added an end of year feature bonus to OpenBD, available in the nightly build edition.   This improves the uploading capabilities to Amazon S3 from your CFML apps.

With this improvement, the AmazonS3Write() function brings the following features:

  1. Retry capability, complete with configurable time to wait between retries
  2. Automatic local file delete on successful upload
  3. Background uploading, with CFC callback upon success or failure

This will help a lot with the management of uploading to S3.  As wonderful a service as S3 is, it isn’t without the odd hiccup when uploading.   Retry logic was a must in any business critical application that required data to be reliably uploaded.

This addition to OpenBD reduces the amount of code the CFML developer has to code and maintain, while increasing the reliability.

Available now to download and start using.

Improved AmazonS3 uploads with OpenBD