Skip to content

Commit

Permalink
Merge pull request #118 from bcgov/bug/SC-3335
Browse files Browse the repository at this point in the history
SC-3335, bug: stop loading files into browser memory before upload
  • Loading branch information
TimCsaky authored Sep 7, 2023
2 parents d653a31 + 280d0b0 commit 728fc33
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions frontend/src/services/objectService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,7 @@ export default {
);
}

const fd = await object.arrayBuffer();
return comsAxios(axiosOptions).put(PATH, fd, config);
return comsAxios(axiosOptions).put(PATH, object, config);
},

/**
Expand Down Expand Up @@ -354,7 +353,6 @@ export default {
);
}

const fd = await object.arrayBuffer();
return comsAxios(axiosOptions).put(`${PATH}/${objectId}`, fd, config);
return comsAxios(axiosOptions).put(`${PATH}/${objectId}`, object, config);
},
};

0 comments on commit 728fc33

Please sign in to comment.