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
Copy file name to clipboardExpand all lines: README.md
+22-7Lines changed: 22 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -410,21 +410,36 @@ Refer to [Query your data](https://docs.skyflow.com/query-data/) and [Execute Qu
410
410
411
411
### Upload File
412
412
413
-
Upload files to a Skyflow vault using the `upload_file` method. Create a file upload request with the `FileUploadRequest` class, which accepts parameters such as the table name, column name, and Skyflow ID.
413
+
Upload files to a Skyflow vault using the `upload_file` method. Create a file upload request with the `FileUploadRequest` class.
414
+
415
+
**Upload a file to an existing record:**
414
416
415
417
```python
416
418
from skyflow.vault.data import FileUploadRequest
417
419
418
420
# Open the file in binary read mode
419
421
withopen('path/to/file.pdf', 'rb') as file_obj:
420
422
upload_request = FileUploadRequest(
421
-
table='documents', # Table name
422
-
column_name='attachment', # Column name to store file
423
-
skyflow_id='<SKYFLOW_ID>', # Skyflow ID of the record
0 commit comments