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?
I solved it by using Dropzone library