Fix variable name in upload