mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-06 08:48:49 +01:00
🎨 改进集市已下载包更新 https://github.com/siyuan-note/siyuan/issues/5807
This commit is contained in:
parent
fcfbab3652
commit
9bc71a9f2c
15 changed files with 49 additions and 38 deletions
|
|
@ -288,7 +288,7 @@ func uploadCloud(sqlAssets []*sql.Asset) (err error) {
|
|||
if fi, statErr := os.Stat(absAsset); nil != statErr {
|
||||
logging.LogErrorf("stat file [%s] failed: %s", absAsset, statErr)
|
||||
return statErr
|
||||
} else if util.CloudSingleFileMaxSizeLimit/10 <= fi.Size() {
|
||||
} else if 10*1024*1024 <= fi.Size() {
|
||||
logging.LogWarnf("file [%s] larger than 10MB, ignore uploading it", absAsset)
|
||||
continue
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue