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

Expose Formidable's onPart #172

Open
coada opened this issue Feb 19, 2020 · 1 comment · May be fixed by #239
Open

Expose Formidable's onPart #172

coada opened this issue Feb 19, 2020 · 1 comment · May be fixed by #239

Comments

@coada
Copy link

coada commented Feb 19, 2020

Feature Request Summary

So what I am trying to achieve is handle multipart/form-data with files, such that the file is not saved on disk. I need a stream/the content of files for parsing them further on, without having to go touch the file system.

The recommended way for Formidable is by providing a callback on each processed part, and then do an operation on the provided part (see https://stackoverflow.com/a/8760340/11599033). This requires setting onPart, but koa-body does not expose this?

My request is to either provide this option, or allow me to set my own Formidable object that I can modify on my own.

This request is similar to #36

Environment Information

  • koa-body: 4.1.1
  • Koa: 2.11.0
  • Node.js: v12.13.1
@Louis-Tian
Copy link

@coada Having a similar issue right now? Wondering if you ever find a workaround for this. Thanks

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

Successfully merging a pull request may close this issue.

2 participants