check against capacity not count
Fixed MIME multipart form data handler
And use content-length value if provided.
Do not change tmp_name from WSF_UPLOADED_FILE ... otherwise the file will be removed at the end of the request