From c89045ecff688473614410d9caf69599413f04ff Mon Sep 17 00:00:00 2001 From: Martin Dosch Date: Sun, 25 Feb 2024 19:36:52 +0100 Subject: [PATCH] http-upload: use correct units. --- httpupload.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/httpupload.go b/httpupload.go index fdc82b3..85a3282 100644 --- a/httpupload.go +++ b/httpupload.go @@ -155,8 +155,8 @@ func httpUpload(client *xmpp.Client, iqc chan xmpp.IQ, jserver string, filePath if maxFileSize != 0 { if fileSize > maxFileSize { return "", errors.New("http-upload: file size " + strconv.FormatInt(fileSize/1024/1024, 10) + - " MB is larger than the maximum file size allowed (" + - strconv.FormatInt(maxFileSize/1024/1024, 10) + " MB).") + " MiB is larger than the maximum file size allowed (" + + strconv.FormatInt(maxFileSize/1024/1024, 10) + " MiB).") } }