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

From the logic in the other places, I don't think `name` has any change to be empty here.