parsing error: unexpected token $

You need to enclose your string in back-ticks - this char `

Like this:

$w("#text67").text = `Uploading ${$w("#uploadButton"+x).value[0].name}`;

For more info, read the article on template literals.