This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <script> | |
| const fileInput = document.getElementById('file-input'); | |
| const uploadBtn = document.getElementById('upload-btn'); | |
| const progressEl = document.getElementById('upload-progress'); | |
| // Enable submit button when file is selected | |
| fileInput.addEventListener('change', () => uploadBtn.disabled = !fileInput.files.length); | |
| document.getElementById('version-upload-form').addEventListener('submit', async function(e) { | |
| e.preventDefault(); |