Debug: change uploadDir in config.js to include __dirname