(c *stream.Client, cmd *cobra.Command, chType, chID, userID, filePath string)
| 20 | } |
| 21 | |
| 22 | func UploadImage(c *stream.Client, cmd *cobra.Command, chType, chID, userID, filePath string) (string, error) { |
| 23 | return uploadFile(c, cmd, uploadTypeImage, chType, chID, userID, filePath) |
| 24 | } |
| 25 | |
| 26 | func uploadFile(c *stream.Client, cmd *cobra.Command, uploadtype uploadType, chType, chID, userID, filePath string) (string, error) { |
| 27 | file, err := os.Open(filePath) |
no test coverage detected