【发布时间】:2018-04-25 19:52:41
【问题描述】:
这里需要更改哪些代码才能在 s3 存储桶上上传图片。
uploader: FileUploader = new FileUploader({
url: URL,
disableMultipart: true,
formatDataFunctionIsAsync: true,
formatDataFunction: async (item) => {
return new Promise((resolve, reject) => {
resolve({
name: item._file.name,
length: item._file.size,
contentType: item._file.type,
date: new Date()
});
});
}
});
提前致谢。
【问题讨论】:
标签: angularjs file-upload amazon-s3 ng2-file-upload