update file extension list

This commit is contained in:
Richard Yu
2025-09-03 14:01:08 -07:00
committed by Arjan Singh
parent 403c772348
commit d6b533124b

View File

@@ -34,8 +34,9 @@ interface IFilenameMappingWidget extends IComboWidget {
computedDisabled?: boolean computedDisabled?: boolean
} }
// Common file extensions that indicate file inputs // Common media file extensions (images, videos, audio)
const FILE_EXTENSIONS = [ const FILE_EXTENSIONS = [
// Image formats
'.jpg', '.jpg',
'.jpeg', '.jpeg',
'.png', '.png',
@@ -44,11 +45,22 @@ const FILE_EXTENSIONS = [
'.bmp', '.bmp',
'.tiff', '.tiff',
'.svg', '.svg',
'.safetensors', // Video formats
'.ckpt', '.mp4',
'.pt', '.avi',
'.pth', '.mov',
'.bin' '.webm',
'.mkv',
'.flv',
'.wmv',
// Audio formats
'.mp3',
'.wav',
'.flac',
'.aac',
'.ogg',
'.m4a',
'.wma'
] ]
/** /**