我想使用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.
}
}
});
如何生成该签名?我正在使用Coldfusion 8.感谢您的帮助。