Self-hosted AI workspace.
Python
fix: use cached blob URL in _createChip to prevent memory leak (#1266)
Paulo Victor Cordeiro600785d9f747
diff --git a/static/js/fileHandler.js b/static/js/fileHandler.jsindex 9e5dbadbc..e62382d75 100644--- a/static/js/fileHandler.js+++ b/static/js/fileHandler.js@@ -112,7 +112,7 @@ function _createChip(f, idx) {chip.classList.add('thumb-image'); // lets CSS overlay the remove-X on the corner (mobile)const img = document.createElement('img');img.className = 'thumb-img';- img.src = URL.createObjectURL(f);+ img.src = _getPreviewUrl(f);img.alt = f.name || 'image';chip.appendChild(img);} else {