mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-03-27 01:10:14 +01:00
safety check on upload on sprite name
This commit is contained in:
parent
a58e026a40
commit
19e2a2f7d2
@ -1699,7 +1699,8 @@ async function onClickExpressionUpload(event) {
|
|||||||
const handleExpressionUploadChange = async (e) => {
|
const handleExpressionUploadChange = async (e) => {
|
||||||
const file = e.target.files[0];
|
const file = e.target.files[0];
|
||||||
|
|
||||||
if (!file) {
|
if (!file || !file.name) {
|
||||||
|
console.debug('No valid file selected');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user