How to limit s3 mutlipart upload filesize?

0

My customer allows users to upload files via multipart upload to S3. We're using the PHP SDK to create the multipart upload.

How is it possible with S3 multipart uploads to limit the maximum filesize?

Please suggest a way to implement this, the documentation didn't seem to provide any insight into this.

質問済み 2年前559ビュー
1回答
0

Are you trying to limit the part size for the multipart (i.e. "no multi-part files larger than 1GB")? If so, there is a >part_size argument for the MultipartUploader object.<

AWS
Dan_H
回答済み 2年前
  • I'm trying to limit the total size of the multipart upload. So the use case is allowing users to upload files directly to s3 by creating the multipart upload and then giving the user presigned upload urls for the parts which works fine. What I'm doing right now is checking after each part upload if the part list is above the size limit I want to enforce, but I wonder if there is a limit I can set on multipart upload creation.

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ