Skip to content

Commit 3e47e6f

Browse files
authored
1 parent 727944c commit 3e47e6f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

files.go

+1
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ func (c *Client) CreateFile(ctx context.Context, request FileRequest) (file File
102102
if err != nil {
103103
return
104104
}
105+
defer fileData.Close()
105106

106107
err = builder.CreateFormFile("file", fileData)
107108
if err != nil {

0 commit comments

Comments
 (0)