fixed config.js to handle uploads