21.7.3. Discussion
By default, Apache::Request won't process uploaded file data. This is
because the file is read into memory, which might not be released to
the operating system once the request is over. If you do enable
uploaded files (by setting DISABLE_UPLOADS to
false), set an upper limit on the size of the file you will accept.
This prevents a malicious attacker from sending an infinite stream of
data and exhausting your system's memory. The
POST_MAX value (10M in the Solution code) is that
maximum value, specified in bytes.
The $r->upload method processes the POSTed file
data and returns an Apache::Upload object. This object has the
following methods for accessing information on the uploaded file: