You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add file_name parameter to FileUploadFromPath docs
The Python SDK (viam-python-sdk#1195) added an optional file_name
parameter to file_upload_from_path(). When provided, it overrides the
filename derived from the filepath.
https://claude.ai/code/session_01K2JbXAWg8N7NYCG46Y4KnD
@@ -337,7 +332,7 @@ All other types of uploaded files can be found under the **Files** subtab of the
337
332
338
333
**Returns:**
339
334
340
-
- ([str](https://docs.python.org/3/library/stdtypes.html#text-sequence-type-str)): : Binary data ID of the new file.
335
+
- ([str](https://docs.python.org/3/library/stdtypes.html#text-sequence-type-str)): : Binary data ID of the new file.
341
336
342
337
**Raises:**
343
338
@@ -448,10 +443,11 @@ Uploaded files can be found under the **Files** subtab of the [**Data** tab](htt
448
443
-`tags` (List[[str](https://docs.python.org/3/library/stdtypes.html#text-sequence-type-str)]) (optional): Optional list of tags to allow for tag-based filtering when retrieving data.
449
444
-`dataset_ids` (List[[str](https://docs.python.org/3/library/stdtypes.html#text-sequence-type-str)]) (optional): Optional list of datasets to add the data to.
450
445
-`mime_type` ([str](https://docs.python.org/3/library/stdtypes.html#text-sequence-type-str)) (optional): Optional mime type of the data.
446
+
-`file_name` ([str](https://docs.python.org/3/library/stdtypes.html#text-sequence-type-str)) (optional): Optional name of the file. If not provided, the name is derived from the filepath.
451
447
452
448
**Returns:**
453
449
454
-
- ([str](https://docs.python.org/3/library/stdtypes.html#text-sequence-type-str)): : Binary data ID of the new file.
450
+
- ([str](https://docs.python.org/3/library/stdtypes.html#text-sequence-type-str)): : Binary data ID of the new file.
455
451
456
452
**Raises:**
457
453
@@ -498,7 +494,7 @@ Uploaded streaming data can be found under the [**Data** tab](https://app.viam.c
498
494
499
495
**Returns:**
500
496
501
-
- ([str](https://docs.python.org/3/library/stdtypes.html#text-sequence-type-str)): : The binary data ID of the uploaded data.
497
+
- ([str](https://docs.python.org/3/library/stdtypes.html#text-sequence-type-str)): : The binary data ID of the uploaded data.
0 commit comments