mock upload deps in doc.js