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