function putObject(bucketName, fileName, fileBody) {
  const fileKey = path.relative(ROOT_PATH, fileName);
  return new Promise((resolve, reject) => {
    s3.putObject(
      { Bucket: bucketName, Key: fileKey, Body: fileBody },
      (err, data) => {
        if (err) {
          reject(err);
        } else {
          resolve(data);
        }
      }
    );
  });
}
/** putObject put objects to the AWS s3 service;
 * This is used for string or IO object
 * @param bucketName: String
 * @param fileName: String
 * @param fileBody: String
 */
putObject put objects to the AWS s3 service;
This is used for string or IO object
@param bucketName: String
@param fileName: String
@param fileBody: String
putObject put objects to the AWS s3 service ; This is used for string or IO object @param bucketName : String @param fileName : String @param fileBody : String
function putObject(bucketName, fileName, fileBody) {
  const fileKey = path.relative(ROOT_PATH, fileName);
  return new Promise((resolve, reject) => {
    s3.putObject(
      { Bucket: bucketName, Key: fileKey, Body: fileBody },
      (err, data) => {
        if (err) {
          reject(err);
        } else {
          resolve(data);
        }
      }
    );
  });
}
function putObject ( bucketName , fileName , fileBody ) { const fileKey = path . relative ( ROOT_PATH , fileName ) ; return new Promise ( ( resolve , reject ) => { s3 . putObject ( { Bucket : bucketName , Key : fileKey , Body : fileBody } , ( err , data ) => { if ( err ) { reject ( err ) ; } else { resolve ( data ) ; } } ) ; } ) ; }
putObject put objects to the AWS s3 service;
 This is used for string or IO object
 @param bucketName: String
 @param fileName: String
 @param fileBody: String
putObject put objects to the AWS s3 service ; This is used for string or IO object @param bucketName : String @param fileName : String @param fileBody : String