Skip to content
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

Open
PauchardThomas opened this issue Aug 5, 2022 · 3 comments
Labels

Comments

@PauchardThomas
Copy link

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
@stale stale bot added the stale label Oct 22, 2022
@bytehead bytehead added question and removed stale labels Oct 24, 2022
@1up-lab 1up-lab deleted a comment from stale bot Oct 24, 2022
@stale stale bot added the stale label Dec 24, 2022
@stale stale bot closed this as completed Dec 31, 2022
@bytehead bytehead removed the stale label Jan 2, 2023
@bytehead bytehead reopened this Jan 2, 2023
@1up-lab 1up-lab deleted a comment from stale bot Jan 2, 2023
@PauchardThomas
Copy link
Author

Up !

@stale stale bot added the stale label May 21, 2023
@bytehead bytehead removed the stale label May 30, 2023
@1up-lab 1up-lab deleted a comment from stale bot May 30, 2023
@PauchardThomas
Copy link
Author

Any idea ?

@bytehead
Copy link
Member

bytehead commented Aug 3, 2023

Not yet, sorry.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants