From d65b7c911511928c41b295239e1c4952692969d4 Mon Sep 17 00:00:00 2001 From: Karol Wypchlo Date: Tue, 18 Feb 2020 11:50:45 +0100 Subject: [PATCH] fix CURL snippet --- .../sia-skynet/src/components/CodeExamples/snippets/download.js | 2 +- .../sia-skynet/src/components/CodeExamples/snippets/upload.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/sia-skynet/src/components/CodeExamples/snippets/download.js b/packages/sia-skynet/src/components/CodeExamples/snippets/download.js index 2018c5f9..cfdca167 100644 --- a/packages/sia-skynet/src/components/CodeExamples/snippets/download.js +++ b/packages/sia-skynet/src/components/CodeExamples/snippets/download.js @@ -21,7 +21,7 @@ import ( func main() { err = skynet.DownloadFile("./image.jpg", skylink, skynet.DefaultDownloadOptions) if err != nil { - fmt.Printf("Unable to download: %v\n", err.Error()) + fmt.Printf("Unable to download: %v", err.Error()) return } fmt.Println("Download successful") diff --git a/packages/sia-skynet/src/components/CodeExamples/snippets/upload.js b/packages/sia-skynet/src/components/CodeExamples/snippets/upload.js index 5399fd6a..cd548b30 100644 --- a/packages/sia-skynet/src/components/CodeExamples/snippets/upload.js +++ b/packages/sia-skynet/src/components/CodeExamples/snippets/upload.js @@ -3,7 +3,7 @@ path = "./image.jpg" skylink = Skynet.UploadFile(path) print("Upload successful, skylink: " + skylink)` -export const curl = `curl -X POST "https://siasky.net/api/skyfile" -F file=@image.jpg` +export const curl = `curl -X POST "https://siasky.net/api/skyfile/[uuid]" -F file=@image.jpg` export const node = `const skynet = require('@nebulous/skynet');