我使用aws s3来存储文件。我正在使用ngUpload和我的桶名以及我的凭据,如下所示。
uploader.upload({
url: 'https://<myBucket>.s3.amazonaws.com/', //S3 upload url including bucket name
method: 'POST',
fields: {
key: refId.toString() + "_" + file.name, // the key to store the file on S3, could be file name or customized
AWSAccessKeyId: 'mySecretKey',
acl: 'private',
policy: 'myPolicy',
signature: 'mySignature',
"Content-Type": file.type != '' ? file.type : 'application/octet-stream',
filename: file.name
},
file: file
}
我可以上传文件但是如何通过来自angularjs part
的http.get请求列出上传的文件