Skip to content

Instantly share code, notes, and snippets.

View 3ddelano's full-sized avatar
💭
Working on Epic Online Services Godot

Delano Lourenco 3ddelano

💭
Working on Epic Online Services Godot
View GitHub Profile
<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();