forked from forgejo/forgejo
Backport #27985 by @lng2020
As title.
Before that, there was no alert at all.
After:

Co-authored-by: Nanguan Lin <70063547+lng2020@users.noreply.github.com>
This commit is contained in:
parent
824d40edc6
commit
60b51d0648
1 changed files with 4 additions and 0 deletions
|
@ -248,6 +248,10 @@ export function initGlobalDropzone() {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
this.on('error', function (file, message) {
|
||||||
|
showErrorToast(message);
|
||||||
|
this.removeFile(file);
|
||||||
|
});
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue