chaiwat update function upload