Add text\plain and text\html respnose types support to 'fileuploadfail' and 'fileuploaddone' events, closes #2703