File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -281,7 +281,7 @@ public function getParamExample(array $param)
281
281
$ output .= '{} ' ;
282
282
break ;
283
283
case self ::TYPE_FILE :
284
- $ output .= "InputFile.fromPath ('dir/file.png') " ;
284
+ $ output .= "InputFile.from_path ('dir/file.png') " ;
285
285
break ;
286
286
}
287
287
}
@@ -302,7 +302,7 @@ public function getParamExample(array $param)
302
302
$ output .= "' {$ example }' " ;
303
303
break ;
304
304
case self ::TYPE_FILE :
305
- $ output .= "InputFile.fromPath ('dir/file.png') " ;
305
+ $ output .= "InputFile.from_path ('dir/file.png') " ;
306
306
break ;
307
307
}
308
308
}
Original file line number Diff line number Diff line change 1
1
require 'appwrite'
2
2
3
3
client = Appwrite::Client.new
4
+ {% if method .type == " upload" %}
5
+ InputFile = Appwrite::InputFile
6
+ {% endif %}
4
7
5
8
client
6
9
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
You can’t perform that action at this time.
0 commit comments