Amazon S3 的 HTTP 上传功能是否支持 web-hook 样式回调? [英] Does Amazon S3's HTTP Uploads feature support web-hook style callbacks?

查看:18
本文介绍了Amazon S3 的 HTTP 上传功能是否支持 web-hook 样式回调?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当使用浏览器 http 上传功能将文件上传到 Amazon S3 时,我知道我可以指定一个 success_action_redirect 字段/值,它会告诉我的浏览器在上传完成后去哪里.

When uploading files to Amazon S3 using the browser http upload feature, I know I can specify a success_action_redirect field/value that will tell my browser where to go when the upload is done.

我想知道:是否可以要求亚马逊在上传文件时向我的网络服务器发出网络挂钩样式的 POST 请求?

基本上,我想要一种在客户端上传新文件时收到通知的方式,以便我的服务器可以处理上传.我不想依赖客户端向我的服务器发出请求告诉我文件已上传(永远不要相信客户端,对吗?).

Basically, I want a way of being notified whenever a client uploads a new file, so that my server can process the upload. I'd like to do this without relying on the client to make the request to my server to tell me the file has been uploaded (never trust the client, right?).

推荐答案

他们最近刚刚宣布了 AWS Lambda 它允许您运行代码以响应事件,其中 S3 上传是受支持的事件之一.

They just recently announced AWS Lambda which lets you run code in response to events, with S3 uploads being one of the supported events.

这篇关于Amazon S3 的 HTTP 上传功能是否支持 web-hook 样式回调?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆