API:Upload/Sample code 2