2

在他们的网站上,froala 有以下内容;

 $('.selector').froalaEditor({
  imageUploadToS3: {
    bucket: 'editor',
    // Your bucket region.
    region: 's3-us-east-1',
    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.
    }
  }
});

我知道如何生成所有params. 但是我该如何实现这个代码AngularJS呢?

4

0 回答 0