Skip to content

Commit e240702

Browse files
committed
Update dotnet sdk create file example
The latest version of our SDKs use InputFile.
1 parent 66ae91f commit e240702

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SDK/Language/DotNet.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ public function getParamExample(array $param): string
236236
if (empty($example) && $example !== 0 && $example !== false) {
237237
switch ($type) {
238238
case self::TYPE_FILE:
239-
$output .= 'new File("./path-to-files/image.jpg")';
239+
$output .= 'InputFile.FromPath("./path-to-files/image.jpg")';
240240
break;
241241
case self::TYPE_NUMBER:
242242
case self::TYPE_INTEGER:

0 commit comments

Comments
 (0)