protected function dataToMultipart(array $data = [])
    {
        $multipart = [];

        foreach($data as $name => $contents) {
            array_push($multipart, ['name' => $name, 'contents' => $contents]);
        }

        return $multipart;
    }