ssbc / handbook.scuttlebutt.nz

ssb handbook: A guide to the Secure Scuttlebutt key concepts and influences (see also, new website: https://gitlab.com/ssbc/scuttlebutt.nz/)
https://handbook.scuttlebutt.nz
167 stars 48 forks source link

"Publish a file" shows how to create a text file, and then references loading an image #153

Closed JonTheNiceGuy closed 4 years ago

JonTheNiceGuy commented 4 years ago

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?

stale[bot] commented 4 years ago

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?