FileService provides file access for gRPC plugins. Plugins use this to read files stored on the core server's filesystem.
Proto file: plugin/grpc/protocol/fileservice.proto
| Method | Request | Response | Streaming |
|---|---|---|---|
| ReadFileBase64 | ReadFileRequest | ReadFileResponse | No |
ReadFileBase64 reads a stored file and returns its MIME type and base64-encoded content.
ReadFileRequestReadFileResponse| Field | Type | Description |
|---|---|---|
| auth_token | string | - |
| file_id | string | - |
| Field | Type | Description |
|---|---|---|
| success | bool | - |
| error | string | - |
| mime_type | string | - |
| base64_data | string | - |