diff --git a/js/modules/web_api.js b/js/modules/web_api.js index 7d446bace..c92681b05 100644 --- a/js/modules/web_api.js +++ b/js/modules/web_api.js @@ -865,7 +865,7 @@ function initialize({ filename: 'attachment', }); - return lokiFileServerAPI.uploadPrivateAttachment(formData); + return lokiFileServerAPI.constructor.uploadPrivateAttachment(formData); } function putAvatar(bin) {