How to upload html input file in chunks?

Issue

I can upload the whole file at once like this:

myInput.onchange = ({ target }) => {
  const file = target.files[0];

  const formData = new FormData();
  formData.append("fileData", file);

  // ...then I post "formData" to server
}

I want to know how to properly upload it in small chunks?

Solution

I solved it by using Dropzone library

Answered By – Eshragh Developer

Answer Checked By – Cary Denson (AngularFixing Admin)

Leave a Reply

Your email address will not be published.