* Create new version for S3 * Update S3 to new aws s3 methods * Switch from SAOP to Rest api * Add multipart request * Seperate stream into chunks and send the multipart * Fix chunk into buffer * Fix wrong sha256 mismatch * Add abort multipart on error * Complete multipart and list parts * Change format to xml and add a minmum size of 5MB for each part * Fix returned data for uploading a file * Remove console.logs * Seperate needed headers and multipart headers * Throw error on aborting, remove console.logs * Remove soap request from generic function * Keep buffer * Add unit test for V2 * fix upload file content body * removed unused import * Fix bug where the object was too smal and used only one part * Fix naming for bucket name * Fix issue with file name not returning data * Add parent name * Remove console.logs * Add content type * fix headears for other upload mode --------- Co-authored-by: Marcus <marcus@n8n.io>
98 lines
1.6 KiB
JSON
98 lines
1.6 KiB
JSON
{
|
|
"name": "Test S3 upload",
|
|
"nodes": [
|
|
{
|
|
"parameters": {},
|
|
"id": "8f35d24b-1493-43a4-846f-bacb577bfcb2",
|
|
"name": "When clicking \"Execute Workflow\"",
|
|
"type": "n8n-nodes-base.manualTrigger",
|
|
"typeVersion": 1,
|
|
"position": [540, 340]
|
|
},
|
|
{
|
|
"parameters": {
|
|
"mode": "jsonToBinary",
|
|
"options": {}
|
|
},
|
|
"id": "eae2946a-1a1e-47e9-9fd6-e32119b13ec0",
|
|
"name": "Move Binary Data",
|
|
"type": "n8n-nodes-base.moveBinaryData",
|
|
"typeVersion": 1,
|
|
"position": [900, 340]
|
|
},
|
|
{
|
|
"parameters": {
|
|
"operation": "upload",
|
|
"bucketName": "bucket",
|
|
"fileName": "binary.json",
|
|
"additionalFields": {}
|
|
},
|
|
"id": "6f21fa3f-ede1-44b1-8182-a2c07152f666",
|
|
"name": "AWS S3",
|
|
"type": "n8n-nodes-base.awsS3",
|
|
"typeVersion": 1,
|
|
"position": [1080, 340],
|
|
"credentials": {
|
|
"aws": {
|
|
"id": "1",
|
|
"name": "AWS account"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"parameters": {
|
|
"jsCode": "return [{ key: \"value\" }];"
|
|
},
|
|
"id": "e12f1876-cfd1-47a4-a21b-d478452683bc",
|
|
"name": "Code",
|
|
"type": "n8n-nodes-base.code",
|
|
"typeVersion": 1,
|
|
"position": [720, 340]
|
|
}
|
|
],
|
|
"connections": {
|
|
"When clicking \"Execute Workflow\"": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "Code",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"Move Binary Data": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "AWS S3",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"Code": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "Move Binary Data",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
}
|
|
},
|
|
"pinData": {
|
|
"AWS S3": [
|
|
{
|
|
"json": {
|
|
"success": true
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|