fix CURL snippet
This commit is contained in:
parent
ae91d1d48e
commit
d65b7c9115
|
@ -21,7 +21,7 @@ import (
|
||||||
func main() {
|
func main() {
|
||||||
err = skynet.DownloadFile("./image.jpg", skylink, skynet.DefaultDownloadOptions)
|
err = skynet.DownloadFile("./image.jpg", skylink, skynet.DefaultDownloadOptions)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Printf("Unable to download: %v\n", err.Error())
|
fmt.Printf("Unable to download: %v", err.Error())
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
fmt.Println("Download successful")
|
fmt.Println("Download successful")
|
||||||
|
|
|
@ -3,7 +3,7 @@ path = "./image.jpg"
|
||||||
skylink = Skynet.UploadFile(path)
|
skylink = Skynet.UploadFile(path)
|
||||||
print("Upload successful, skylink: " + skylink)`
|
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');
|
export const node = `const skynet = require('@nebulous/skynet');
|
||||||
|
|
||||||
|
|
Reference in New Issue