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: apps/docs/content/docs/en/integrations/file.mdx
+4-3Lines changed: 4 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,7 +27,7 @@ In Sim, the File block allows your agents to read and extract text from workspac
27
27
28
28
## Usage Instructions
29
29
30
-
Read workspace file objects, extract the text content of files, fetch and parse files from URLs with optional headers, write new workspace files, append content to existing files, compress files into a .zip archive, extract a .zip archive into the workspace, or manage the public share link for a file.
30
+
Read workspace file objects, extract the text content of files, fetch and parse files from URLs with optional headers, write new workspace files at relative paths, append content to existing files, compress files into a .zip archive, extract a .zip archive into the workspace, or manage the public share link for a file.
31
31
32
32
33
33
@@ -86,13 +86,13 @@ Fetch and parse a file from a URL with optional custom headers.
86
86
87
87
### File Write
88
88
89
-
Create a new workspace file. If a file with the same name already exists, a numeric suffix is added (e.g., "data (1).csv").
89
+
Create a new workspace file at a relative path. Missing folders are created automatically. If a file with the same name already exists, a numeric suffix is added (e.g., "data (1).csv").
90
90
91
91
#### Input
92
92
93
93
| Parameter | Type | Required | Description |
94
94
| --------- | ---- | -------- | ----------- |
95
-
|`fileName`| string | Yes |File name \(e.g., "data.csv"\). If a file with this name exists, a numeric suffix is added automatically. |
95
+
|`fileName`| string | Yes |Relative workspace file path \(e.g., "Reports/2026/report.md"\). Missing folders are created automatically, and name conflicts receive a numeric suffix. |
96
96
|`content`| string | Yes | The text content to write to the file. |
97
97
|`contentType`| string | No | MIME type for new files \(e.g., "text/plain"\). Auto-detected from file extension if omitted. |
98
98
@@ -102,6 +102,7 @@ Create a new workspace file. If a file with the same name already exists, a nume
102
102
| --------- | ---- | ----------- |
103
103
|`id`| string | File ID |
104
104
|`name`| string | File name |
105
+
|`vfsPath`| string | Canonical workspace path of the created file \(e.g., files/Reports/2026/report.md\)|
Copy file name to clipboardExpand all lines: apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/components/file-upload/file-upload.tsx
+33-18Lines changed: 33 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -14,6 +14,11 @@ import { isApiClientError } from '@/lib/api/client/errors'
0 commit comments