Probé el código de uncompress.js. Pero no entiendo por qué los js necesitan cargar el formato y luego reactivar el botón. ¿Alguien puede simplificar el código para que pueda usarlo localmente sin blob, promesa o asíncrono? Solo necesito probar un archivo comprimido con el navegador.
loadArchiveFormats(['rar', 'zip', 'tar'], function() { fileInput.onchange = function() { // Just return if there is no file selected if (fileInput.files.length === 0) { entryList.innerHTML = 'No file selected'; return; } // Get the selected file let file = fileInput.files[0]; let password = filePassword.value; // Open the file as an archive archiveOpenFile(file, password, function(archive, err) { if (archive) { console.info('Uncompressing ' + archive.archive_type + ' ...'); entryList.innerHTML = ''; onArchiveLoaded(archive); } else { entryList.innerHTML = '<span style="color: red">' + err + '</span>'; } }); }; fileInput.disabled = false;}); '''