add success response to data object after file upload