summaryrefslogtreecommitdiffstats
path: root/api/auto_posts.go
diff options
context:
space:
mode:
Diffstat (limited to 'api/auto_posts.go')
-rw-r--r--api/auto_posts.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/auto_posts.go b/api/auto_posts.go
index b64217c55..2e26e513b 100644
--- a/api/auto_posts.go
+++ b/api/auto_posts.go
@@ -74,7 +74,7 @@ func (cfg *AutoPostCreator) UploadTestFile() ([]string, bool) {
return nil, false
}
- resp, appErr := cfg.client.UploadFile("/files/upload", body.Bytes(), writer.FormDataContentType())
+ resp, appErr := cfg.client.UploadPostAttachment(body.Bytes(), writer.FormDataContentType())
if appErr != nil {
return nil, false
}