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

@lins05 a rewrite of the part of filebrowserdialog, does it look better now?