Added upload api method