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

How to halt formidable.parse #457

Open
arnabsarkardhn opened this issue Jan 5, 2018 · 3 comments
Open

How to halt formidable.parse #457

arnabsarkardhn opened this issue Jan 5, 2018 · 3 comments
Labels
Area: APIs Things related to external and internal APIs Priority: Low This issue can probably be picked up by anyone looking to contribute to the project. Status: Available No one has claimed for resolving this issue. Generally applied to bugs and enhancement issues. Type: Discussions Things that need discussion. Brainstorming. Type: Enhancement Most issues will probably be for additions or changes. Expected that this will result in a PR.

Comments

@arnabsarkardhn
Copy link

trying to build a service which will call AWS to load multiple images and return the AWS keys to the client. Here I am using Promise.all() to complete all the AWS call and get the AWS keys and then return the bunch of keys to the client.

I am using formidable. how do we halt the formidable.parse until the PromiseAll is complete?

@xarguments
Copy link
Collaborator

This is related to #471 feature request.
Callback of form.parse is called when all of the files are uploaded.
You can use form.onPart(), which is called before uploading files, and try to pause somehow there (depends on details of your implementation)

@tunnckoCore
Copy link
Member

You can use form.onPart(),

Or the standard Events API, form.on('part', handler) and throw Error from the handler? #471 (comment)

@tunnckoCore
Copy link
Member

tunnckoCore commented Apr 3, 2022

Why it sounds to me like #503... hmm.

Ok. If someone has ideas, we are open. Maybe #388 could fix this? It's pretty old but..

@tunnckoCore tunnckoCore added Priority: Low This issue can probably be picked up by anyone looking to contribute to the project. Status: Available No one has claimed for resolving this issue. Generally applied to bugs and enhancement issues. Type: Enhancement Most issues will probably be for additions or changes. Expected that this will result in a PR. Type: Discussions Things that need discussion. Brainstorming. Area: APIs Things related to external and internal APIs labels Apr 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: APIs Things related to external and internal APIs Priority: Low This issue can probably be picked up by anyone looking to contribute to the project. Status: Available No one has claimed for resolving this issue. Generally applied to bugs and enhancement issues. Type: Discussions Things that need discussion. Brainstorming. Type: Enhancement Most issues will probably be for additions or changes. Expected that this will result in a PR.
Projects
None yet
Development

No branches or pull requests

3 participants