Streaming large files with fetch and FormData
Hi, I'm trying to find a way to build multiplart/form-data requests in Deno that contain large files. Ideally, I'll like these requests and the underlying files to be streamed out instead of needing to read the whole file into memory and adding them as parts to the request. I can't seem to find a built-in API for acquiring a Blob-like file handle. I also tried using
Node.js v20+: the
Bun: The
Any suggestions on how I can make this work in Deno?
npm:fetch-blob/from.js but that isn't compatible with Deno. Compared to other platforms:Node.js v20+: the
fs.openAsBlob function in node:fs can return a web File backed by the file systemBun: The
Bun.file function also returns a web File backed by the file systemAny suggestions on how I can make this work in Deno?
