From d4ecc5647f1c31398f4e6131591a9f14f499da48 Mon Sep 17 00:00:00 2001 From: Marcin S Date: Mon, 19 Oct 2020 13:13:58 +0200 Subject: [PATCH] Fix upload code examples --- packages/webapp/src/components/CodeExamples/Code.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/webapp/src/components/CodeExamples/Code.js b/packages/webapp/src/components/CodeExamples/Code.js index a4658926..72fd8e44 100644 --- a/packages/webapp/src/components/CodeExamples/Code.js +++ b/packages/webapp/src/components/CodeExamples/Code.js @@ -1,5 +1,5 @@ export const curl = `# upload -curl -X POST "https://siasky.net/skynet/skyfile" -F file=@src.jpg +curl -X POST "https://siasky.net/skynet/skyfile" -F "file=@src.jpg" # download curl "https://siasky.net/[skylink]" -o dst.jpg`; @@ -14,7 +14,7 @@ const client = new SkynetClient(); async function example() { try { // upload - const { skylink } = await client.uploadFile(file); + const skylink = await client.uploadFile(file); console.log(\`Upload successful, skylink: \${skylink}\`); // download