Skip to content
Discussion options

You must be logged in to vote

I use this https://github.com/jcberquist/aws-cfml
I find it more useful that the built in CFML S3 stuff.

If you chuck that miscellaneous/aws you can do something like this:

// S3 CFC
local.aws = new app.miscellaneous.aws.aws(
    awsKey = YOURACCESSKEY,
    awsSecretKey = YOURSECRETKEY,
    defaultRegion = 'eu-west-2'
);

// S3 PUT
local.rv = local.aws.s3.putObject(
    bucket = BUCKETNAME,
    objectKey = "/uploads/1234/5678/1234.jpg"
    FileContent = uploadContent, // binary contents
    ContentType = 'image/jpeg' // A standard MIME type describing the format of the contents
);

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@neokoenig
Comment options

@edthetechie
Comment options

@edthetechie
Comment options

@neokoenig
Comment options

@edthetechie
Comment options

Answer selected by edthetechie
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants