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

`not_found` is not a good variable name, what about `has_name_conflit`?