fflush()-ing uploaded file before calling MG_UPLOAD callback