Add support for text upload in API .