无法使用Strongloop从s3获取特定文件 [英] Cannot Get specific file from s3 using Strongloop
本文介绍了无法使用Strongloop从s3获取特定文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我可以从容器(s3)上传,删除和获取文件夹列表,但无法使用Strongloop从Amazon S3获取特定文件.
I can upload, delete and get list of folders from container(s3) but not able to get specific file from amazon S3 using Strongloop.
我的代码:
$scope.getS3Files = function(myfolderName){ //have to get all zip files in myfolderAbc
$http.get('api/basePath/containerABC/files/folder1/myfolderAbc=' + myfolderName).then(function (result) {
$scope.filePath = result.data;
}, function (err) {
toastr.error(err.data.error.message);
}),
};
错误:
message: "Shared class "basePath" has no method handling GET /containerABC/files/folder1/myfolderAbc=myfolderName"
name: "Error"
stack: "Error: Shared class "basePath" has no method handling GET /containerABC/files/folder1/myfolderAbc=myfolderName↵ at restRemoteMethodNotFound (d:\NodeJSProjects\abc\node_modules\loopback\node_modules\strong-remoting\lib\rest-adapter.js:322:17)↵ at Layer.handle [as handle_request] (d:\NodeJSProjects\abc\node_modules\loopback\node_modules\express\lib\router\layer.js:95:5)↵ at trim_prefix (d:\NodeJSProjects\abc\node_modules\loopback\node_modules\express\lib\router\index.js:312:13)↵ at d:\NodeJSProjects\abc\node_modules\loopback\node_modules\express\lib\router\index.js:280:7↵ at Function.process_params (d:\NodeJSProjects\abc\node_modules\loopback\node_modules\express\lib\router\index.js:330:12)↵ at next (d:\NodeJSProjects\abodeadmin\node_modules\loopback\node_modules\express\lib\router\index.js:271:10)↵ at Function.handle (d:\NodeJSProjects\abc\node_modules\loopback\node_modules\express\lib\router\index.js:176:3)↵ at router (d:\NodeJSProjects\abc\node_modules\loopback\node_modules\express\lib\router\index.js:46:12)↵ at Layer.handle [as handle_request] (d:\NodeJSProjects\abc\node_modules\loopback\node_modules\express\lib\router\layer.js:95:5)↵ at trim_prefix (d:\NodeJSProjects\abc\node_modules\loopback\node_modules\express\lib\router\index.js:312:13)"
status: 404
statusCode: 404
先谢谢了.
推荐答案
您可能正在使用'loopback-explorer'!只需删除它并使用'use 'loopback-component-explorer'即可.您将能够完美地实现您的目标.
You might be using 'loopback-explorer' ! just remove that and use 'use 'loopback-component-explorer' . You will be able to achieve your goal perfectly .
这篇关于无法使用Strongloop从s3获取特定文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文