define([], function () { return function () { var self = this; self.upload = function (file, name, url) { return Promise.reject(); }; }; });