Creating large group issue

I’m trying to create a large group using @uploadcare/upload-client, the group method specifically.
But I get this error (414 Request-URI Too Large).
I have a few groups a user has uploaded, I need to combine them into 1 large group to download it as an archive latter.

Any hints?

Solved by calling the API directly.

  const url = 'https://upload.uploadcare.com/group/';
  const formData = new FormData();
  formData.append(
    'pub_key',
    process.env.REACT_APP_UPLOADCARE_PUBLIC_KEY as string
  );
  fileIds.forEach(id => {
    formData.append('files[]', id);
  });
  const config = {
    withCredentials: false,
    crossDomain: true,
    mode: 'cors',
    headers: {
      'Content-Type': 'multipart/form-data',
      Accept: 'application/json'
    }
  };
  const combinedGroup = await axios.post<
    CreateGroupResponse
  >(url, formData, config);
1 Like

Glad you’ve found a workaround. Could you share the request’s reference ID so we can investigate it? You can find it in the Log Vievew

There’s probably a bug in the upload-client.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.