MCPcopy Create free account
hub / github.com/GetStream/stream-cli / UploadFile

Function UploadFile

pkg/cmd/chat/utils/fileupload.go:18–20  ·  view source on GitHub ↗
(c *stream.Client, cmd *cobra.Command, chType, chID, userID, filePath string)

Source from the content-addressed store, hash-verified

16)
17
18func UploadFile(c *stream.Client, cmd *cobra.Command, chType, chID, userID, filePath string) (string, error) {
19 return uploadFile(c, cmd, uploadTypeFile, chType, chID, userID, filePath)
20}
21
22func UploadImage(c *stream.Client, cmd *cobra.Command, chType, chID, userID, filePath string) (string, error) {
23 return uploadFile(c, cmd, uploadTypeImage, chType, chID, userID, filePath)

Callers 1

uploadFileCmdFunction · 0.92

Calls 1

uploadFileFunction · 0.85

Tested by

no test coverage detected