Skip to content

Commit 4d1e19e

Browse files
committed
fix: #790
1 parent 727944c commit 4d1e19e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

files.go

Lines changed: 1 addition & 0 deletions
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)