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

Is this necessary? After all, following this logic you would have to check other params like `path` is empty or not...