ut.value = '';

                // Reset the file list and PDF preview
                const fileListContainer = document.getElementById('file-list');
                const pdfPreviewContainer = document.getElementById('pdf-preview-container');
                const pdfPreview = document.getElementById('pdf-preview');

                fileListContainer.innerHTML = '';
                pdfPreviewContainer.style.display = 'none';
                pdfPreview.src = '';
            }

            // Attach the res