Amazon S3 - 直接上传,隐藏用户看不到的操作 URL

发布于 2024-12-15 01:22:50 字数 251 浏览 1 评论 0原文

我们使用 Amazon S3 来存储大文件,因此我们使用从用户浏览器直接上传的方式,如下所述:http:// aws.amazon.com/articles/1434

我的问题是: 我可以以某种方式隐藏表单的操作 URL,以便用户无法找到文件上传的位置吗?它是 100% 隐藏的还是我至少可以让有经验的用户更难找到它?

谢谢。

We use Amazon S3 for storing large files, so we use direct upload from user's browser as described here: http://aws.amazon.com/articles/1434

My question is:
could I somehow hide form's action URL so user won't be able to find out where the file is being uploaded? Would it be 100% hiden or could I just at least make it harder for experienced users to find it?

Thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

巴黎盛开的樱花 2024-12-22 01:22:50

好吧,您需要向用户提供信息,以便他们可以使用它上传到 S3...隐藏它的唯一方法是让他们 POST 到您的服务器,然后您将其重新 POST 到 S3,但这就违背了目的不是吗?

到底担心什么?您链接的文件显示您必须签署所有内容,以便他们知道只有您可以制作该表格......所以无论如何,任何人都无法获取您的数据。

Well, you need to give the information to the user so that they can use it to upload to S3... the only way to hide it would be to have them POST to your server, where you then re-POST it to S3, but that defeats the purpose doesn't it?

What's the concern, exactly? The document you linked shows that you have to sign everything so they know that only you could've made that form... so it's not like anybody can get at your data, anyway.

不忘初心 2024-12-22 01:22:50

您无法隐藏它,因为重点是从他们的计算机直接传输到 s3,这是最快的方式。即使您从代码中删除它并让表单提交按钮请求要使用的 url,然后隐藏,它也只会出现在 console.log 的网络活动中。如果你必须使用 s3,如果你想通过你的服务器运行它,你可能应该安装一个比 Node 更快的上传器(或者用 c 写一个?哈哈)。这就引出了一个问题,什么语言/框架可以最快上传到 s3?

You can't hide it since the whole point is going from their computer directly to s3, the fastest way possible. Even if you removed it from the code and had your form submit button request a url to use, then hide, it will just be in console.log's network activity. If you have to use s3, you maybe should install a faster uploader(or write one in c? haha) than node if you want to run it through your server. which begs the question, what language/framework can upload to s3 the fastest?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文