adjust upload url for main.js