diff --git a/crates/nu-command/src/network/http/post.rs b/crates/nu-command/src/network/http/post.rs index 1d144f7d16..597f9478b9 100644 --- a/crates/nu-command/src/network/http/post.rs +++ b/crates/nu-command/src/network/http/post.rs @@ -128,8 +128,13 @@ impl Command for SubCommand { result: None, }, Example { - description: "Upload a file to example.com", - example: "http post --content-type multipart/form-data https://www.example.com { file: (open -r file.mp3 | into binary) }", + description: "Upload a binary file to example.com", + example: "http post --content-type multipart/form-data https://www.example.com { file: (open -r file.mp3) }", + result: None, + }, + Example { + description: "Convert a text file into binary and upload it to example.com", + example: "http post --content-type multipart/form-data https://www.example.com { file: (open -r file.txt | into binary) }", result: None, }, ]