Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

145
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!