karimfromjordan
karimfromjordan•3y ago

`multipart` file upload streams

I'm trying to handle multipart forms and I am new to Deno and noticed that the MultipartReader mentioned in a few blog posts seems to be gone in newer versions of the standard library. Does that also mean that there is no way anymore to control memory usage with something like a maxMemory property? Because as far as I understand you are supposed to just use request.formData() which provides no way of handling this.
1 Reply
karimfromjordan
karimfromjordanOP•3y ago
https://deno.land/std@0.119.0/mime/mod.ts?s=MultipartReader#method_readForm_0 So from what I gather in this conversation support for streams for multipart forms in Deno is incomplete which makes unsuitable for files that are larger than a few megabytes 😕 https://discord.com/channels/684898665143206084/689420767620104201/954086580136603688

Did you find this page helpful?