Skip to content

Using client.putFile

Shridhar Gupta edited this page Jun 13, 2016 · 2 revisions
client.putFile(filePath, newFileName, headers, function(err, res) {
    if (err) return;
    else if (200 == res.statusCode) {
      var awsData = res.socket._httpMessage;
      console.log('Uploaded to S3: ', awsData.url);
    }
});

Clone this wiki locally