4

In an aurelia project I'm trying to upload a large file using fetch. I can do an upload of the file by passing the file to the body of the call to fetch. However before upload I would like to compress the file. Since it is not feasible to keep the file in memory, i would like to compress and stream it to the server on the fly. Is it possible to pass some kind of stream to the fetch call to allow this ?

sideshowbarker
  • 81,827
  • 26
  • 193
  • 197
Marwijn
  • 1,681
  • 15
  • 24

0 Answers0