Skip to content

How to halt formidable.parse #457

Open

Description

@arnabsarkardhn

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?

Activity

  1. xarguments commented on Jun 24, 2018

    @xarguments
    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)

  2. tunnckoCore commented on Jun 24, 2018

    @tunnckoCore
    Member

    You can use form.onPart(),

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

  3. tunnckoCore commented on Apr 3, 2022

    @tunnckoCore
    Member

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

  4. added
    Priority: LowThis issue can probably be picked up by anyone looking to contribute to the project.
    Status: AvailableNo one has claimed for resolving this issue. Generally applied to bugs and enhancement issues.
    Type: EnhancementMost issues will probably be for additions or changes. Expected that this will result in a PR.
    Type: DiscussionsThings that need discussion. Brainstorming.
    Area: APIsThings related to external and internal APIs
    on Apr 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area: APIsThings related to external and internal APIsPriority: LowThis issue can probably be picked up by anyone looking to contribute to the project.Status: AvailableNo one has claimed for resolving this issue. Generally applied to bugs and enhancement issues.Type: DiscussionsThings that need discussion. Brainstorming.Type: EnhancementMost issues will probably be for additions or changes. Expected that this will result in a PR.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions