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