mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
feat(AwsS3 Node): Small overhaul of the node with multipart uploading (#6017)
* 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>
This commit is contained in:
@@ -14,11 +14,11 @@ import type {
|
||||
} from 'n8n-workflow';
|
||||
import { NodeApiError, NodeOperationError } from 'n8n-workflow';
|
||||
|
||||
import { bucketFields, bucketOperations } from '../Aws/S3/BucketDescription';
|
||||
import { bucketFields, bucketOperations } from '../Aws/S3/V1/BucketDescription';
|
||||
|
||||
import { folderFields, folderOperations } from '../Aws/S3/FolderDescription';
|
||||
import { folderFields, folderOperations } from '../Aws/S3/V1/FolderDescription';
|
||||
|
||||
import { fileFields, fileOperations } from '../Aws/S3/FileDescription';
|
||||
import { fileFields, fileOperations } from '../Aws/S3/V1/FileDescription';
|
||||
|
||||
import { s3ApiRequestREST, s3ApiRequestSOAP, s3ApiRequestSOAPAllItems } from './GenericFunctions';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user