Skip to content

Commit

Permalink
perf: update ipfs gateway
Browse files Browse the repository at this point in the history
Constantly experiencing "504 Gateway Time-out" message for two main `ipfs.io` & `dweb.link` gateways.
`ipfs.infura.io` is faster.

Check on:
https://ipfs.github.io/public-gateway-checker/
  • Loading branch information
akhileshthite authored Jun 13, 2022
1 parent 66e90ef commit 6a0462c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/js/qrcode.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ $("#fileUpload").on("change", async function () {
var files = fileUpload.files;
var name = files[0].name;
var cid = await client.put(files);
let ipfsLink = `https://dweb.link/ipfs/${cid}/${name}/`;
let ipfsLink = `https://ipfs.infura.io/ipfs/${cid}/${name}/`;
hideLoader(function () {
uploadCallback(cid, ipfsLink);
});
Expand All @@ -100,7 +100,7 @@ $("#folderUpload").on("change", async function () {
showLoader();
var files = folderUpload.files;
var cid = await client.put(files);
let ipfsLink = `https://dweb.link/ipfs/${cid}/`;
let ipfsLink = `https://ipfs.infura.io/ipfs/${cid}/`;
hideLoader(function () {
uploadCallback(cid, ipfsLink);
});
Expand Down

0 comments on commit 6a0462c

Please sign in to comment.