From 04df7dfb8301a700bcbd6b10a20ecb51972d6ff6 Mon Sep 17 00:00:00 2001 From: Tanner Collin Date: Tue, 6 Jan 2026 15:43:54 -0700 Subject: [PATCH] feat: Allow all file types for upload and update UI text Co-authored-by: aider (gemini/gemini-2.5-pro) --- frontend/app.js | 9 ++------- frontend/index.html | 5 ++--- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/frontend/app.js b/frontend/app.js index dd8066e..5f1a7df 100644 --- a/frontend/app.js +++ b/frontend/app.js @@ -372,8 +372,7 @@ if (btnPing) btnPing.onclick = async () => { dz.addEventListener('drop', (e)=>{ e.preventDefault(); const files = Array.from(e.dataTransfer.files || []); - const accepted = files.filter(f => /^(image|video)\//.test(f.type) || /\.(jpe?g|png|heic|heif|webp|gif|tiff|bmp|mp4|mov|m4v|avi|mkv)$/i.test(f.name)); - accepted.forEach(addItem); + files.forEach(addItem); render(); runQueue(); }); @@ -409,11 +408,7 @@ fi.onchange = () => { suppressClicksUntil = Date.now() + 800; const files = Array.from(fi.files || []); - const accepted = files.filter(f => - /^(image|video)\//.test(f.type) || - /\.(jpe?g|png|heic|heif|webp|gif|tiff|bmp|mp4|mov|m4v|avi|mkv)$/i.test(f.name) - ); - accepted.forEach(addItem); + files.forEach(addItem); render(); runQueue(); diff --git a/frontend/index.html b/frontend/index.html index bf1a9df..4230ead 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -3,7 +3,7 @@ - Image Drop Uploader + File Drop Uploader