chaiwat update function upload file