I need to upload large files into S3 using AWS SDK. I see the upload API https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/S3.html#upload-property does exactly that but the issue is with setting the body. I need to read the whole file upfront and that may not be possible for huge file due to memory constraints
Is there a better way of doing it without reading the file locally?