From 51bdb61105819d6016386513efdc1ccbd5dead74 Mon Sep 17 00:00:00 2001 From: Karol Wypchlo Date: Thu, 13 Feb 2020 14:23:57 -0500 Subject: [PATCH] use relative api link --- packages/sia-skynet/src/components/HomeUpload/HomeUpload.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/sia-skynet/src/components/HomeUpload/HomeUpload.js b/packages/sia-skynet/src/components/HomeUpload/HomeUpload.js index f38f4264..96aa152e 100644 --- a/packages/sia-skynet/src/components/HomeUpload/HomeUpload.js +++ b/packages/sia-skynet/src/components/HomeUpload/HomeUpload.js @@ -21,7 +21,7 @@ export default class HomeUpload extends Component { }); acceptedFiles.forEach(async file => { - const url = `https://siasky.net/api/skyfile?filename=${file.name}`; + const url = `/api/skyfile?filename=${file.name}`; const fd = new FormData(); fd.append("file", file);