Is it possible to clarify in this page (current version now) how one would upload a non-text file? For example, does one do:
cat my_file.jpg | ssb-server blobs.add
Or, can I do ssb-server blobs.add my_file.jpg
The guide also then goes on to say "you can reference this file in a post", with this:
ssb-server publish --type post --text "checkout this pic! ![CHC.jpg](&akkg6hKV7ee6sATu3mLeR6KfhgUbNGHWl/QJeALpQ0Y=.sha256)" --mentions.0.name CHC.jpg --mentions.0.link &akkg6hKV7ee6sATu3mLeR6KfhgUbNGHWl/QJeALpQ0Y=.sha256 --mentions.0.size 288388 --mentions.0.type image/jpeg
Do you need to provide the whole mentions.0.* stuff, or can you "just" use the text code, and let the client figure it out for themselves? If you do, is the .size in bytes?
Is it possible to clarify in this page (current version now) how one would upload a non-text file? For example, does one do:
cat my_file.jpg | ssb-server blobs.add
Or, can I do
ssb-server blobs.add my_file.jpg
The guide also then goes on to say "you can reference this file in a post", with this:
ssb-server publish --type post --text "checkout this pic! ![CHC.jpg](&akkg6hKV7ee6sATu3mLeR6KfhgUbNGHWl/QJeALpQ0Y=.sha256)" --mentions.0.name CHC.jpg --mentions.0.link &akkg6hKV7ee6sATu3mLeR6KfhgUbNGHWl/QJeALpQ0Y=.sha256 --mentions.0.size 288388 --mentions.0.type image/jpeg
Do you need to provide the whole
mentions.0.*
stuff, or can you "just" use the text code, and let the client figure it out for themselves? If you do, is the.size
in bytes?