When using the aws-sdk npm module for nods.js, I can download pdf at 50kb with the following code (in AWS s3):
var params = { Bucket: BUCKET, Key: pdf_key, Body: file, ContentType: 'application/pdf' }; var s3 = new AWS.S3(); s3.putObject(params, function(error, data) { console.log(data); console.log(error); if (error) { console.log(error); callback(error, null); } else { callback(null, pdf_key); } });
But when downloading 11mb pdf, even with ContentLength , the download just continues forever, even with a 2 minute timeout.
The question is, how to get aws s3 to accept a large PDF file?
UPDATE
I have not yet found any documentation or an under for the question.
UPDATE 2
I will accept answers that show one structure or another that can do this. I will need this framework to be able to also allow auth-reading of an object.
UPDATE 3 I have earned it now, but I have not found a reason why it should not work.
Thanks in advance!
source share