Skip to content

multiple with customRequest #242

Open

Description

@alextrastero

Hi, i'm trying to allow multiple files upload with customRequest.

const foo = (file) => {
  console.log(file);
};

<Upload
  multiple
  customRequest={foo}
  ...

My issue is that file is being logged once per file instead of receiving an array of files as a native file input would do.

Do you know anyway around this? If not I would need to add these files to state and somehow determine when no more files and only then trigger the request... which is not desired.

Thanks!

Activity

  1. alextrastero commented on Apr 20, 2020

    @alextrastero
    Author

    image

    Also, I get an error when selecting multiple files.

  2. alextrastero commented on Oct 6, 2022

    @alextrastero
    Author

    Wow, Oct 2022 and I just ran into this issue again... customRequest is being called once per file

  3. zhouzongren commented on May 23, 2024

    @zhouzongren

    Same confusion. We just cant determined how to upload the files by own queue mehotds, we had to upload each file independed and hard to orgnize them

  4. Subilan commented on Oct 2, 2025

    @Subilan

    Same

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions