diff options
Diffstat (limited to 'cli/actions.js')
-rw-r--r-- | cli/actions.js | 2 |
1 files changed, 1 insertions, 1 deletions
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) { | |||
97 | var destinationPath = (options.destination ? '/' + options.destination : '') + '/' + relativeFilePath; | 97 | var destinationPath = (options.destination ? '/' + options.destination : '') + '/' + relativeFilePath; |
98 | console.log('Uploading file %s -> %s', relativeFilePath.cyan, destinationPath.cyan); | 98 | console.log('Uploading file %s -> %s', relativeFilePath.cyan, destinationPath.cyan); |
99 | 99 | ||
100 | superagent.put(config.server() + API + relativeFilePath).query(gQuery).attach('file', file).end(function (error, result) { | 100 | superagent.put(config.server() + API + destinationPath).query(gQuery).attach('file', file).end(function (error, result) { |
101 | if (error) return callback(error); | 101 | if (error) return callback(error); |
102 | if (result.statusCode !== 201) return callback(new Error('Error uploading file: ' + result.statusCode)); | 102 | if (result.statusCode !== 201) return callback(new Error('Error uploading file: ' + result.statusCode)); |
103 | 103 | ||