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
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
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