小编Ric*_*k99的帖子

如何使用Coldfusion 8中的Froala中的imageUploadtoS3选项创建签名?

我想使用Froala文本编辑器将图像直接上传到我的Amazon S3帐户.需要S3身份验证签名.

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.
    }
  }
});
Run Code Online (Sandbox Code Playgroud)

如何生成该签名?我正在使用Coldfusion 8.感谢您的帮助.

froala

5
推荐指数
0
解决办法
412
查看次数

标签 统计

froala ×1