code: protected function dataToMultipart(array $data = [])
      {
          $multipart = [];
  
          foreach($data as $name => $contents) {
              array_push($multipart, ['name' => $name, 'contents' => $contents]);
          }
  
          return $multipart;
      }
docs: Converts data to multipart option for guzzle
  
  @param array $data
  @return array