mirror of
https://github.com/blossom-editor/blossom
synced 2024-11-17 22:48:03 +08:00
修复上传文件大小校验
This commit is contained in:
parent
264258f8ea
commit
5da0b21e3a
@ -24,7 +24,7 @@ export interface Picture {
|
||||
* @returns
|
||||
*/
|
||||
export const beforeUpload: UploadProps['beforeUpload'] = (rawFile) => {
|
||||
if (rawFile.size / 1024 / 1024 > 10) {
|
||||
if (rawFile.size / 1024 / 1024 > 50) {
|
||||
Notify.error('文件大小不能超过 50MB!', '上传失败')
|
||||
return false
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user