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.

preguntada hace 2 años559 visualizaciones
1 Respuesta
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
respondido hace 2 años
  • 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.

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas