mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-03 19:30:16 +01:00
This commit is contained in:
parent
f2479af3b9
commit
0fbf1c4ed3
4 changed files with 9 additions and 9 deletions
|
|
@ -23,7 +23,7 @@ import {getColId} from "./col";
|
|||
import {getFieldIdByCellElement} from "./row";
|
||||
import {getCompressURL, removeCompressURL} from "../../../util/image";
|
||||
import {confirmDialog} from "../../../dialog/confirmDialog";
|
||||
import prettyBytes from "pretty-bytes";
|
||||
import {filesize} from "filesize";
|
||||
|
||||
export const bindAssetEvent = (options: {
|
||||
protyle: IProtyle,
|
||||
|
|
@ -427,7 +427,7 @@ export const dragUpload = (files: ILocalFiles[], protyle: IProtyle, cellElement:
|
|||
const assetPaths: string[] = [];
|
||||
files.forEach(item => {
|
||||
if (item.size && Constants.SIZE_UPLOAD_TIP_SIZE <= item.size) {
|
||||
msg += window.siyuan.languages.uploadFileTooLarge.replace("${x}", item.path).replace("${y}", prettyBytes(item.size, {binary: true})) + "<br>";
|
||||
msg += window.siyuan.languages.uploadFileTooLarge.replace("${x}", item.path).replace("${y}", filesize(item.size, {standard: "jedec"})) + "<br>";
|
||||
}
|
||||
assetPaths.push(item.path);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue