0

I can upload a single file using apollo-upload-client but not inside a loop.

It actually sends a file and response back as base64 binary, which takes 10 seconds but it uploads all files instantly without any response.

selectedFilesArray.map(async (file: any) => {
    try {
        await mutate({ variables: { file } });
    } catch (e) {
      console.log("error: ", e);
    }
  });
Michel Floyd
  • 18,793
  • 4
  • 24
  • 39
FaruQ
  • 3
  • 1
  • 2
  • Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking. – Community Nov 23 '22 at 21:19

0 Answers0