I have two questions about the storage in blockstack:
Is the function putFile()
in blockstack-js the only way to upload a file?
And will anything about the file be put into the underlying blockchain or just simply put the file into Gaia?
Is the function putFile() in blockstack-js the only way to upload a file?
No – you need to make a POST
to your Gaia hub. That’s all putFile()
does – it takes your data and POST
s it to your Gaia hub.
And will anything about the file be put into the underlying blockchain or just simply put the file into Gaia?
It gets sent to Gaia only. The blockchain is not used.
Great question @wayneblock.id.blocks and thanks for the answer @jude, I’ve incorporated this information in to the Gaia docs I’m working on.
I’m uploading compressed images as base64 inside a json at Fupio.com
that was my solution.
check the source code below;