Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- { fieldname: 'file',
- originalname: 'test.torrent',
- encoding: '7bit',
- mimetype: 'application/octet-stream',
- buffer: { type: 'Buffer', data: [Array] },
- size: 7449 },
- var file = data.patientfile.file.buffer;
- var params = { Bucket: myBucket, Key: data.patientfile.file.fieldname, Body: file };
- s3.upload(params, function (err, data) {
- if (err) {
- console.log("******************",err)
- } else {
- console.log("Successfully uploaded data to myBucket/myKey");
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement