Skip to content

Commit

Permalink
prmdr-241 remove console log
Browse files Browse the repository at this point in the history
  • Loading branch information
NogaNHS committed Oct 5, 2023
1 parent 51fb5a0 commit 3213e3c
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions app/src/helpers/requests/uploadDocument.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,12 @@ const uploadDocument = async ({
);
documents.map(async (document) => {
const docGatewayResponse = gatewayResponse[document.file.name];
console.log(docGatewayResponse);
const formData = new FormData();
Object.keys(docGatewayResponse.fields).forEach((key) => {
formData.append(key, docGatewayResponse.fields[key]);
});
formData.append('file', document.file);
const s3url = docGatewayResponse.url;
console.log(s3url);
const s3Response = await axios.post(s3url, formData, {
onUploadProgress: (progress) => {
const { loaded, total } = progress;
Expand Down

0 comments on commit 3213e3c

Please sign in to comment.