How to download application/octet-stream from uploadAsync?

import { FileSystemUploadType, uploadAsync } from "expo-file-system";

const res = await uploadAsync(
  `${API_URL}/${API_VERSION}/transform`,
  document.uri,
  {
    headers: {
      Accept: "application/json",
      "Content-Type": "multipart/form-data",
      Authorization: `Bearer ${token}`,
    },
    httpMethod: "POST",
    uploadType: FileSystemUploadType.MULTIPART,
    fieldName: "my-field",
  }
);

returns

LOG  {"body": null, "headers": {"Connection": "keep-alive", "Content-Disposition": "attachment; filename=356795A2-6690-4313-B3AD-D0E276A8DFA7.pdf; filename*=UTF-8''356795A2-6690-4313-B3AD-D0E276A8DFA7.pdf", "Content-Length": "1138405", "Content-Type": "application/octet-stream", "Date": "Sat, 10 Jun 2023 10:27:41 GMT", "Server": "Kestrel"}, "mimeType": "application/octet-stream", "status": 200}

Body is null so I can’t imagine how i can read the result file

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