adding uploadProcessor.js
moving methods to uploadProcessor