1
files.go
1
files.go
@@ -102,6 +102,7 @@ func (c *Client) CreateFile(ctx context.Context, request FileRequest) (file File
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
defer fileData.Close()
|
||||||
|
|
||||||
err = builder.CreateFormFile("file", fileData)
|
err = builder.CreateFormFile("file", fileData)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user