deligenius / multiparser

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

Where is the filepath ? #14

Open dukesx opened 2 years ago

dukesx commented 2 years ago

I recently switched from nodejs to deno and came to use this library for form parsing as alternative to formiddable. It seems that there is no filepath property for a file if sent from a form. Why is that ? Formiddable seems to have it and this is now not allowing me to read file and send as buffer. i have tried working with Uint8array but sending it as base64 has some complications that dont get resolved.

tunnckoCore commented 1 year ago

@dukesx heya! Maintainer of formidable here. Looking around the competition :hand_over_mouth: 😛

I think this is because this module does not do anything with the file system, thus you can get the filename and make a filepath from it.

Formidable has "filepath" because it defaults to writing to the disk, which it won't do soon. Plus I'm working on minimizing it to just the parser with a thin Web-compliant API (File, FormData, and etc).