Yes, you can use an .onChange() event for the upload button. Something like this:
$w.onReady( function() {
$w("#uploadButton").onChange( (event) => {
$w("#uploadButton").startUpload()
.then( (uploadedFile) => {
let url = uploadedFile.url;
$w("#image1").src = url;
$w("#uploadButton").hide();
//do something else too
});
});
});