title: Moving file between buckets on same amazon account
body: <p>I'm having some issues moving files on amazon s3 in a lambda trigger.
  I am able to do the <code>s3.getObject</code> but i think my issue is where im doing the <code>s3.putObject</code></p>
  
  <pre><code>var srcBucket = event.Records[0].s3.bucket.name;
  var srcKey = decodeURIComponent(event.Records[0].s3.object.key.replace(/\+/g, " "));
  var s3params = {Bucket: srcBucket, Key: srcKey};
  
  s3.getObject(s3params, function(err, data) {
      if (err) console.log(err, err.stack); // an error occurred
      else     console.log("Loaded " + data.ContentLength + " bytes"); // successful response
  
      var destinationpath = destinationbucket + '/moved_files/';
      console.log("Destination: " +destinationpath);
  
      var destiniation_name = destinationpath + str.split("/")[3];
      console.log(destiniation_name);
      var upparams = {Bucket: destinationbucket, Key: destiniation_name,ContentType: data.ContentType, Body: data.Stream};
      s3.putObject(upparams,function(err, data) {
          if (err) console.log(err, err.stack); // an error occurred
          else     console.log("upload response " +data); // successful response
          context.succeed('exit');
      });
  });
  </code></pre>