fix CURL snippet

This commit is contained in:
Karol Wypchlo 2020-02-18 11:50:45 +01:00
parent ae91d1d48e
commit d65b7c9115
2 changed files with 2 additions and 2 deletions

View File

@ -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")

View File

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