Skip to content

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

@PauchardThomas

Description

@PauchardThomas

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions