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');