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
}
// Common file extensions that indicate file inputs
// Common media file extensions (images, videos, audio)
const FILE_EXTENSIONS = [
// Image formats
'.jpg',
'.jpeg',
'.png',
@@ -44,11 +45,22 @@ const FILE_EXTENSIONS = [
'.bmp',
'.tiff',
'.svg',
'.safetensors',
'.ckpt',
'.pt',
'.pth',
'.bin'
// Video formats
'.mp4',
'.avi',
'.mov',
'.webm',
'.mkv',
'.flv',
'.wmv',
// Audio formats
'.mp3',
'.wav',
'.flac',
'.aac',
'.ogg',
'.m4a',
'.wma'
]
/**