Update fucntion: upload