简体   繁体   English

相当于基于 S3 浏览器的 POST 策略和 Azure blob 存储?

[英]Equivalent to S3 browser-based POST policy with Azure blob storage?

Amazon S3 storage allows you to provide users with the permission to make an upload using a signed POST request, which incorporates the concept of a POST policy , allowing you to limit things like filename and size of upload for that request. Amazon S3 存储允许您为用户提供使用签名 POST 请求进行上传的权限,该请求包含POST 策略的概念,允许您限制该请求的文件名和上传大小等内容。 You might, for example, want to permit your user to upload a.mp4 file up to 100MB in size.例如,您可能希望允许您的用户上传最大为 100MB 的 .mp4 文件。

Does Azure blob storage have an equivalent to this? Azure blob 存储是否与此等效? As far as I can tell, they recommend that you generate a SAS token for an upload which has no capability of limiting filename and upload size.据我所知,他们建议您为无法限制文件名和上传大小的上传生成 SAS 令牌。

As of today, no such functionality exists with Azure Blobs.截至今天,Azure Blob 不存在此类功能。 With Shared Access Signature, you can't control the type or size of the content being uploaded using a SAS URL.使用共享访问签名,您无法控制使用 SAS URL 上传的内容的类型或大小。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM