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

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

问题描述

使用浏览器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.

我想知道:是否可以在文件上传时要求Amazon向我的Web服务器发出Web挂钩样式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挂钩样式回调?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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