diff --git a/js/controllers/website-controller.js b/js/controllers/website-controller.js index 03954a4..58dfa08 100644 --- a/js/controllers/website-controller.js +++ b/js/controllers/website-controller.js @@ -347,11 +347,11 @@ app.controller('websiteCtrl', [ console.log(r); }; vm.Sites.upload = function (r) { - r.uploadPath = undefined; if (r.uploadPath === undefined) { r.uploadPath = vm.autoPopulateWebPath; + } else { + r.uploadPath = vm.breadcrumbsPath.join('') + vm.autoPopulateWebPath; } - vm.copyUploadPath = r.uploadPath; vm.copyr = r; var pkg = Auth.oauth3.pkg('www@daplie.com'); //analyzeFile(r.newFile, r);