deligenius / multiparser

multipart/form-data parser for Deno servers
28 stars 7 forks source link

Opine support #13

Open Dishit79 opened 2 years ago

Dishit79 commented 2 years ago

Does this module work with opine. If so how would one implement it to handle file uploading.

gjuoun commented 2 years ago

Hey

I think you should ask the author to expose the original deno request object, so that you can pass it into multiparser: like

  const parsed = await multiParser(req.originalRequest)

Now the original request is set to private and it's impossible to access it. https://deno.land/x/opine@2.1.4/src/request.ts#L70