I have multipart/form-data
that I am posting to an express endpoint /data/upload
, form markup below:
form(enctype=\"multipart/form-data
If possible, send a custom header with exactly size file (bytes). The header always can be read before handle payload stream. Use this instead of content-length header of previous answer, because that sometimes doesn't works (with small files, i guess, but i cannot ensure that works with large files).