original_string: public function uploadString($name, $content, $contentType = 'text/plain')
      {
          $s3FileName = $this->getFilePathAndUniquePrefix() . $name;
          list($bucket, $prefix) = explode('/', $this->s3path, 2);
  
          $this->s3client->putObject([
              'Bucket' => $bucket,
              'Key' => (empty($prefix) ? '' : (trim($prefix, '/') . '/')) . $s3FileName,
              'ContentType' => $contentType,
              'ACL' => 'private',
              'ServerSideEncryption' => 'AES256',
              'Body' => $content,
          ]);
  
          return $this->withUrlPrefix($s3FileName);
      }
code: public function uploadString($name, $content, $contentType = 'text/plain')
      {
          $s3FileName = $this->getFilePathAndUniquePrefix() . $name;
          list($bucket, $prefix) = explode('/', $this->s3path, 2);
  
          $this->s3client->putObject([
              'Bucket' => $bucket,
              'Key' => (empty($prefix) ? '' : (trim($prefix, '/') . '/')) . $s3FileName,
              'ContentType' => $contentType,
              'ACL' => 'private',
              'ServerSideEncryption' => 'AES256',
              'Body' => $content,
          ]);
  
          return $this->withUrlPrefix($s3FileName);
      }
code_tokens: public function uploadString ( $ name , $ content , $ contentType = 'text/plain' ) { $ s3FileName = $ this -> getFilePathAndUniquePrefix ( ) . $ name ; list ( $ bucket , $ prefix ) = explode ( '/' , $ this -> s3path , 2 ) ; $ this -> s3client -> putObject ( [ 'Bucket' => $ bucket , 'Key' => ( empty ( $ prefix ) ? '' : ( trim ( $ prefix , '/' ) . '/' ) ) . $ s3FileName , 'ContentType' => $ contentType , 'ACL' => 'private' , 'ServerSideEncryption' => 'AES256' , 'Body' => $ content , ] ) ; return $ this -> withUrlPrefix ( $ s3FileName ) ; }
docstring: Uploads string as file to s3
  @param $name
  @param $content
  @param string $contentType
  @return string
docstring_tokens: Uploads string as file to s3