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

After the rewrite, the code would not check for name conflict when the user choose a file to upload? https://github.com/haiwen/seafile-client/blob/patch-27-implement-update-action/src/filebrowser/file-browser-dialog.cpp#L537