How to create a signature using the imageUploadtoS3 option in Froala with Coldfusion 8?

I want to use the Froala text editor to upload images directly to my Amazon S3 account. Signature S3 required.

ImageUploadtoS3 javascript:

$('.selector').editable({
  imageUploadToS3: {
    bucket: 'editor',
    region: 's3',
    keyStart: 'uploads/',
    callback: function (url, key) {
      // The URL and Key returned from Amazon.
      console.log (url);
      console.log (key);
    },
    params: {
      acl: 'public-read', // ACL according to Amazon Documentation.
      AWSAccessKeyId: 'ACCESS_KEY', // Access Key from Amazon.
      policy: 'POLICY_STRING', // Policy string computed in the backend.
      signature: '', // Signature computed in the backend.
    }
  }
});

How do I generate this signature? I am using Coldfusion 8. Thanks for your help.

+4
source share

All Articles