corrected serialiation of file upload response