小编Che*_*enL的帖子

SNS主题权限的S3设置事件

我正在尝试在S3存储桶上创建一个事件,以便每次创建新对象时,都会向SNS发送一条消息.

我做了一些研究,并添加"ArnLike":{ "AWS:SourceArn": "阿尔恩:AWS:S3: ::testBucket"}为目标的主题的政策.testBucket是存储桶的名称

但是当我尝试创建事件时,它仍然显示"目标主题上的权限不允许S3从此存储桶发布通知"

有任何想法吗?非常感激

amazon-s3 amazon-sns

11
推荐指数
2
解决办法
6860
查看次数

How to post binary using Axios?

I'm trying to make a post request to a server that accepts a binary file upload with Authentication token in header

I was able to achieve this using XMLHttpRequest(), but are there ways to use axios to achieve the same thing?

I've tried

axios.post(url, File, {
    headers: {
        'Content-Type': File.type,
        'Authentication' : faketoken
    }
})
Run Code Online (Sandbox Code Playgroud)

where File is an instance of Html5 File interface, this doesn't work, for some reason when I exam the request header in chrome, the content-type …

javascript post axios

6
推荐指数
1
解决办法
941
查看次数

有没有办法使用php触发带有测量协议或其他服务的标签?

我们正在考虑为我们的 web 应用程序实施分析,以便我们可以从后端 (php) 触发自定义事件,谷歌分析没有我们需要的深度来跟踪电子邮件和用户状态等信息,谷歌标签看起来很有希望,但我可以' t 弄清楚如何触发标签从后端工作。

由于在标签管理器内部我们可以将自定义事件配置为触发器,我想知道是否有办法使用测量协议或类似的东西来设置自定义触发器

如果这是一个愚蠢的问题,请原谅我,提前致谢。

php google-analytics google-tag-manager

3
推荐指数
1
解决办法
1388
查看次数