This commit is contained in:
eiixy
2024-07-19 22:06:27 +08:00
committed by GitHub
parent 727944c478
commit 3e47e6fef4

View File

@@ -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 {