added doc uplaod functionality