('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 resetFields function to the modal's show event
            modal.addEventListener('show.bs.modal', resetFields);
        }

        const r