fix CURL snippet
This commit is contained in:
parent
ae91d1d48e
commit
d65b7c9115
|
@ -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")
|
||||
|
|
|
@ -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');
|
||||
|
||||
|
|
Reference in New Issue