main.js: parameterize upload path.