Skip to content

Commit e5949c5

Browse files
Merge pull request #483 from appwrite/fix-doc-input-files
2 parents 51a8e42 + f986926 commit e5949c5

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/SDK/Language/Deno.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ public function getParamExample(array $param)
151151
$output .= '{}';
152152
break;
153153
case self::TYPE_FILE:
154-
$output .= "'file.png'";
154+
$output .= "InputFile.fromPath('/path/to/file.png', 'file.png')";
155155
break;
156156
}
157157
}
@@ -170,7 +170,7 @@ public function getParamExample(array $param)
170170
$output .= "'{$example}'";
171171
break;
172172
case self::TYPE_FILE:
173-
$output .= "'file.png'";
173+
$output .= "InputFile.fromPath('/path/to/file.png', 'file.png')";
174174
break;
175175
}
176176
}

src/SDK/Language/Node.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ public function getParamExample(array $param)
154154
$output .= '{}';
155155
break;
156156
case self::TYPE_FILE:
157-
$output .= "'file.png'";
157+
$output .= "InputFile.fromPath('/path/to/file.png', 'file.png')";
158158
break;
159159
}
160160
}
@@ -173,7 +173,7 @@ public function getParamExample(array $param)
173173
$output .= "'{$example}'";
174174
break;
175175
case self::TYPE_FILE:
176-
$output .= "'file.png'";
176+
$output .= "InputFile.fromPath('/path/to/file.png', 'file.png')";
177177
break;
178178
}
179179
}

src/SDK/Language/PHP.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ public function getParamExample(array $param)
316316
$output .= '[]';
317317
break;
318318
case self::TYPE_FILE:
319-
$output .= "'file.png'";
319+
$output .= "InputFile::withPath('file.png')";
320320
break;
321321
}
322322
}
@@ -337,7 +337,7 @@ public function getParamExample(array $param)
337337
$output .= "'{$example}'";
338338
break;
339339
case self::TYPE_FILE:
340-
$output .= "'file.png'";
340+
$output .= "InputFile::withPath('file.png')";
341341
break;
342342
}
343343
}

0 commit comments

Comments
 (0)