From 94d4bb7b8cec9ed0c315f089ecf5e7d94c03c8c3 Mon Sep 17 00:00:00 2001 From: Jon Lambson Date: Fri, 6 Oct 2017 12:31:26 -0600 Subject: [PATCH] fixing upload --- js/controllers/website-controller.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);