Modified upload handler API to be able to invoke callbacks when new fields/variables
are successfully parsed from multipart POST request. Fix for #20034.