fix issue

This commit is contained in:
_oah
2024-07-20 11:02:39 +08:00
5 changed files with 7 additions and 8 deletions
+1 -1
View File
@@ -92,7 +92,7 @@ func (r *Client) UploadAttachment(filename string, mediaType string, attachmentT
}
var response []byte
var directory = filename
if response, err = util.PostFile("media", nil, "", directory, fmt.Sprintf(uploadTempFile, accessToken, mediaType)); err != nil {
if response, err = util.PostFile("media", nil, "", directory, fmt.Sprintf(uploadAttachment, accessToken, mediaType, attachmentType)); err != nil {
return nil, err
}
result := &UploadAttachmentResponse{}