From 4406a8bd91f9ace2a6da4c33cb4f055284c82f34 Mon Sep 17 00:00:00 2001 From: Barry Gitarts Date: Tue, 4 Jun 2019 13:00:19 -0400 Subject: [PATCH] disable progress on gateway uploads There is currently an issue with the gateway disabling until this issue is resolved --- src/utils/ipfs.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/utils/ipfs.js b/src/utils/ipfs.js index c7a59e1..2ea8744 100644 --- a/src/utils/ipfs.js +++ b/src/utils/ipfs.js @@ -86,10 +86,7 @@ export const uploadToIpfs = async files => { } export const uploadToIpfsGateway = async files => { - const options = { - progress: (prog) => console.log(`received: ${prog}`) - } - const res = await ipfsHttp.add(files, options) + const res = await ipfsHttp.add(files) return `ipfs/${res.slice(-1)[0].hash}` }