knox-amazon-s3-client

showing an image from amazon s3 with nodejs, expressjs and knox

不羁岁月 提交于 2019-11-30 07:32:36
I think this should be a straight forward thing, but I can't fing a solution :s I'm trying to figure out the best way to show images stored on amazon S3 on a website. Currently I'm trying to get this to work (unsuccessful) //app.js app.get('/test', function (req, res) { var file = fs.createWriteStream('slash-s3.jpg'); client.getFile('guitarists/cAtiPkr.jpg', function(err, res) { res.on('data', function(data) { file.write(data); }); res.on('end', function(chunk) { file.end(); }); }); }); //index.html <img src="/test" /> Isn't it maybe possible to show the images directly from amazon ? I mean,

Stream uploading file to S3 on Node.js using formidable and (knox or aws-sdk)

|▌冷眼眸甩不掉的悲伤 提交于 2019-11-28 19:41:07
I'm trying to stream upload a file submitted via a form directly to an Amazon S3 bucket, using aws-sdk or knox . Form handling is done with formidable . My question is: how do I properly use formidable with aws-sdk (or knox) using each of these libraries' latest features for handling streams? I'm aware that this topic has already been asked here in different flavors, ie: How to receive an uploaded file using node.js formidable library and save it to Amazon S3 using knox? node application stream file upload directly to amazon s3 Accessing the raw file stream from a node-formidable file upload

Stream uploading file to S3 on Node.js using formidable and (knox or aws-sdk)

偶尔善良 提交于 2019-11-27 12:27:57
问题 I'm trying to stream upload a file submitted via a form directly to an Amazon S3 bucket, using aws-sdk or knox. Form handling is done with formidable. My question is: how do I properly use formidable with aws-sdk (or knox) using each of these libraries' latest features for handling streams? I'm aware that this topic has already been asked here in different flavors, ie: How to receive an uploaded file using node.js formidable library and save it to Amazon S3 using knox? node application stream