working on xhr-based upload, implemented mkCollection call