mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-29 18:52:19 +00:00
update file extension list
This commit is contained in:
@@ -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'
|
||||||
]
|
]
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user