s3.putObject({ Bucket: bucketName, Key: fileName, Body: file, ACL: \'bucket-owner-full-control\' }, function(err, data) { i
I guess you've encountered the default caching mechanism which is 24 hours, this results in not receiving the latest stored object. To override this, add parameter to putObject():
CacheControl: "no-cache" or Expires: new Date()
CacheControl: "no-cache"
Expires: new Date()