fixing upload

This commit is contained in:
Jon Lambson 2017-10-06 12:31:26 -06:00
parent aa82fbb01f
commit 94d4bb7b8c
1 changed files with 2 additions and 2 deletions

View File

@ -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);