Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

150
Vistas
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 la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda