[fix] do not drop "type" attribute because it brakes jquery templates for upload