> I am starting to learn how to handle file uploads with CherryPy.
> tutorial/tut09_files.py states that "When a client uploads a file to a
> CherryPy application, it's placed on disk immediately."
> To me, this sounds a bit risky. I run a virtual server with 2GB HD
> and imagine someone uploading /dev/random or /dev/zero until my disk
> bursts. ;-)
> Is there a way to cancel the upload once it exceedes a certain size
> _before_ the entire file is written to disk? As I understand it, this
> is not possible from within a CherryPy application.
It is actually possible already by setting the following two keys: