Updates to handle video in a dataset on ui

This commit is contained in:
Jaret Burkett committed 2025-03-26 12:15:28 -06:00
1 parent 4595965e06
commit e4526ad4a4
13 files changed
+228 -58

No files matched your search

+1 -1
View File
@@ -36,7 +36,7 @@ export async function POST(request: Request) {
* @returns Array of absolute paths to image files
*/
function findImagesRecursively(dir: string): string[] {
const imageExtensions = ['.png', '.jpg', '.jpeg', '.webp'];
const imageExtensions = ['.png', '.jpg', '.jpeg', '.webp', '.mp4', '.avi', '.mov', '.mkv', '.wmv', '.m4v', '.flv'];
let results: string[] = [];
const items = fs.readdirSync(dir);