implement update_action and change the context menu's upload to update

I meant if using FileUpdateTask the code is still not clear.