-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
How to upload file in koa2? #952
Comments
@carlisliu Thank you very much. But there should have a plugin to do that. |
@SteveCruise you mean like https://github.com/koa-modules/multer? |
@fl0w koa-better-body is based on Formidable to deal with file upload. But Formidable is hard to use. jquery-file-upload-middleware is based on Formidable and makes it easy but it's only for express. Multer is not the right one. |
Formidable is hard to deal with multiple upload. |
here is another promise based file uploader I'm using that in my project |
I use koa multer and works pretty well. |
@BruceHem Yes, koa-multer is what I want, but it has little readme, I must read multer for express first. |
I summarize the best choise of koa2 middleware here. |
@valVk Thank you very much. |
I also had some struggle, thus wrote my own wrapper. |
@valVk Thanks this one is really easy to use. |
@crazyyi Hi, what the best of it for upload file? What should I use? |
What can I use to upload files directly as binary stream? Like with AWS S3 (and minio)? |
|
Exactly my question, @std4453. I was trying to scavenge around, searching for a solution - but failed to find a single mention to that use case. The way I usually go about this is using |
And most important, with a callback when upload finish, like jquery-file-upload-middleware in express.
Getting params is also needed.
The text was updated successfully, but these errors were encountered: