             const mimeType = entry.mimeType || guessMimeType(base64Key);
                let mediaElement;

                if (mimeType.includes('image/')) {
                    mediaElement = document.createElement('img');
                    mediaElement.alt = '图像预览';
                    mediaElement.addEventListener('click', function() {
                        const modal = document.getElementById('mediaModal');
                        const modalContent = document.getElementById('moda