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

146
Visualizações
Is it possible to modify the bytes before upload?

Say I have an HTML input with type file and an upload endpoint, now when I hit submit the file gets upload into the server. So there is any chance I can tap into the bytes (for e.g. 1mb at a time) before upload and modify them and send to upload. Just want a middle man function in the upload process. But the server sees it as a normal upload.

I get the file from accessing the input field (document.querySelector('input-id').files[0].file) and I can override the onsubmit event to modify the submit logic.

Is it even possible without modifying server logic, or I need a specific server-client logic to make modification of the data. Can you anyone tell me about the methods to do so?

Reading the file as a whole and modifying and uploading is not an option.

Thank You.

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