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.

posta 2 anni fa559 visualizzazioni
1 Risposta
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
con risposta 2 anni fa
  • 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.

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande