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.

demandé il y a 2 ans559 vues
1 réponse
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
répondu il y a 2 ans
  • 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.

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions