From 802c67734b461e68d271434291c22a2305fc01a7 Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Fri, 27 Nov 2015 15:06:43 -0800 Subject: upload to destinationPath --- cli/actions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/actions.js b/cli/actions.js index e5b0c6d..6fb9893 100644 --- a/cli/actions.js +++ b/cli/actions.js @@ -97,7 +97,7 @@ function put(filePath, otherFilePaths, options) { var destinationPath = (options.destination ? '/' + options.destination : '') + '/' + relativeFilePath; console.log('Uploading file %s -> %s', relativeFilePath.cyan, destinationPath.cyan); - superagent.put(config.server() + API + relativeFilePath).query(gQuery).attach('file', file).end(function (error, result) { + superagent.put(config.server() + API + destinationPath).query(gQuery).attach('file', file).end(function (error, result) { if (error) return callback(error); if (result.statusCode !== 201) return callback(new Error('Error uploading file: ' + result.statusCode)); -- cgit v1.2.3