Skip to content

Commit 2716c71

Browse files
Merge pull request appwrite#683 from appwrite/fix-dotnet-file-param
2 parents 54bed3e + e240702 commit 2716c71

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)