http-upload: use correct units.

no-tls
Martin Dosch 3 months ago
parent 6b2c78d2c2
commit c89045ecff
No known key found for this signature in database
GPG Key ID: 52A57CFCE13D657D

@ -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).")
}
}

Loading…
Cancel
Save