mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-26 19:38:48 +01:00
🎨 Improve upload asset to cloud error message
This commit is contained in:
parent
c20c644440
commit
fe9ffed025
7 changed files with 15 additions and 7 deletions
|
|
@ -616,7 +616,9 @@ func uploadAssets2Cloud(assetPaths []string, bizType string) (err error) {
|
|||
}
|
||||
|
||||
if limitSize < uint64(fi.Size()) {
|
||||
logging.LogWarnf("file [%s] larger than limit size [%s], ignore uploading it", humanize.IBytes(limitSize), absAsset)
|
||||
logging.LogWarnf("file [%s] larger than limit size [%s], ignore uploading it", absAsset, humanize.IBytes(limitSize))
|
||||
msg := fmt.Sprintf(Conf.Language(247), filepath.Base(absAsset), humanize.IBytes(limitSize))
|
||||
util.PushErrMsg(msg, 30000)
|
||||
continue
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue