Closed diversario closed 13 years ago
Hi @shaisultanov!
Probably the docs are not so clear about this, the behaviour is correct, the checkContentLength switch is related to uploadThreshold and not to maxFileSize; you have not set uploadThreshold in your example, then files are received.
When checkContentLength is true, formaline checks if total length of request overflows uploadThreshold , if so the request is stopped before any files were uploaded.
If it is setted to false, means that formaline ignores the content-length header ( because this header generally could be intentionally faked ) and checks only uploadThreshold .
With this code:
app loads entire file (tested with files up to 5 MB in size) and then removes it with "upload threshold exceed" and
fileremoved
messages. Files less thanUPLOAD_LIMIT
are saved.Request headers include "content-length" header.