From 8a154038cb32d0d5ad1f5dc3c6f70aa6dfd5570e Mon Sep 17 00:00:00 2001 From: Saifeddine ALOUI Date: Fri, 24 Jan 2025 16:35:04 +0100 Subject: [PATCH] Update index.html --- lightrag/api/static/index.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lightrag/api/static/index.html b/lightrag/api/static/index.html index d4784802..8f21a537 100644 --- a/lightrag/api/static/index.html +++ b/lightrag/api/static/index.html @@ -240,6 +240,9 @@ // Drag and Drop const dropZone = $('.drop-zone'); + dropZone.addEventListener('click', () => { + fileInput.click(); + }); ['dragenter', 'dragover', 'dragleave', 'drop'].forEach(eventName => { dropZone.addEventListener(eventName, (e) => {