Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Where is the filepath ? #14

Open
dukesx opened this issue May 17, 2022 · 1 comment
Open

Where is the filepath ? #14

dukesx opened this issue May 17, 2022 · 1 comment

Comments

@dukesx
Copy link

dukesx commented May 17, 2022

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
Copy link

tunnckoCore commented Dec 2, 2022

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

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants