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

multiple with customRequest #242

Open
alextrastero opened this issue Apr 20, 2020 · 3 comments
Open

multiple with customRequest #242

alextrastero opened this issue Apr 20, 2020 · 3 comments

Comments

@alextrastero
Copy link

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!

@alextrastero
Copy link
Author

image

Also, I get an error when selecting multiple files.

@alextrastero
Copy link
Author

alextrastero commented Oct 6, 2022

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

@zhouzongren
Copy link

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

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

No branches or pull requests

2 participants