-
Notifications
You must be signed in to change notification settings - Fork 177
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Chunked uploads : How to stop the upload process when the file maxsize has been reached #429
Labels
Comments
Up ! |
Any idea ? |
Not yet, sorry. |
Up ! :) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
The text was updated successfully, but these errors were encountered: