Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

246
Visualizações
uncompress.js not loaded on local browser. How to fix?

I tried the code from uncompress.js. But I do not understand why the js need to load the format and after that reactive the button. Can anyone simplelize the code so that I can use it locally without blob, promise or async. I just need to test compresd a file with browser.

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;

}); '''

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda