Added processUpload() method