1up-lab / OneupUploaderBundle

This Symfony bundle provides a server implementation for handling single and multiple file uploads using either FineUploader, jQuery File Uploader, YUI3 Uploader, Uploadify, FancyUpload, MooUpload, Plupload or Dropzone. Features include chunked uploads, orphanages, Gaufrette and Flysystem support.
MIT License
603 stars 177 forks source link

Chunked uploads : How to stop the upload process when the file maxsize has been reached #429

Open PauchardThomas opened 2 years ago

PauchardThomas commented 2 years ago

Question

Hi,

I'm using chunked uploads and I would like to stop the upload process when the file maxsize has been reached. Currently my ValidationListener check the filesize and if it's greater than eg 1GB , I delete the file and throw a ValidationException. But the ValidationListener is only triggered when all the chunks has been uploaded. It may be a critical issue : if a user upload a 100Go file, my server storage will be completely full.

The 'max_size' set in the oneup_uploader.yaml mapping is also triggered after all the chunks has been uploaded

How can I resolve this problem ?

Thanks

Q A
Version 4.0
PauchardThomas commented 1 year ago

Up !

PauchardThomas commented 1 year ago

Any idea ?

bytehead commented 1 year ago

Not yet, sorry.

PauchardThomas commented 2 months ago

Up ! :)