mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-26 05:04:05 -08:00
🐛 Fix issue when uploading files via S3 (#1011)
This commit is contained in:
parent
82e16790c6
commit
979a849940
|
@ -105,11 +105,11 @@ export class AwsS3 implements INodeType {
|
||||||
const items = this.getInputData();
|
const items = this.getInputData();
|
||||||
const returnData: IDataObject[] = [];
|
const returnData: IDataObject[] = [];
|
||||||
const qs: IDataObject = {};
|
const qs: IDataObject = {};
|
||||||
const headers: IDataObject = {};
|
|
||||||
let responseData;
|
let responseData;
|
||||||
const resource = this.getNodeParameter('resource', 0) as string;
|
const resource = this.getNodeParameter('resource', 0) as string;
|
||||||
const operation = this.getNodeParameter('operation', 0) as string;
|
const operation = this.getNodeParameter('operation', 0) as string;
|
||||||
for (let i = 0; i < items.length; i++) {
|
for (let i = 0; i < items.length; i++) {
|
||||||
|
const headers: IDataObject = {};
|
||||||
if (resource === 'bucket') {
|
if (resource === 'bucket') {
|
||||||
//https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateBucket.html
|
//https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateBucket.html
|
||||||
if (operation === 'create') {
|
if (operation === 'create') {
|
||||||
|
@ -526,7 +526,6 @@ export class AwsS3 implements INodeType {
|
||||||
if (additionalFields.requesterPays) {
|
if (additionalFields.requesterPays) {
|
||||||
headers['x-amz-request-payer'] = 'requester';
|
headers['x-amz-request-payer'] = 'requester';
|
||||||
}
|
}
|
||||||
|
|
||||||
if (additionalFields.parentFolderKey) {
|
if (additionalFields.parentFolderKey) {
|
||||||
path = `/${additionalFields.parentFolderKey}/`;
|
path = `/${additionalFields.parentFolderKey}/`;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue