aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/swarm/upload.go
Commit message (Collapse)AuthorAgeFilesLines
* cmd/swarm: fix error handling in 'swarm up' (#14557)Lewis Marshall2017-06-061-13/+22
| | | | | | The error returned by client.Upload was previously being ignored due to becoming out of scope outside the if statement. This has been fixed by instead defining a function which returns the hash and error (rather than trying to set the hash in each branch of the if statement).
* swarm/api: refactor and improve HTTP API (#3773)Lewis Marshall2017-04-071-28/+50
| | | | | | | This PR deprecates the file related RPC calls in favour of an improved HTTP API. The main aim is to expose a simple to use API which can be consumed by thin clients (e.g. curl and HTML forms) without the need for complex logic (e.g. manipulating prefix trie manifests).
* cmd/swarm: allow uploading from stdin (#3744)Louis Holbrook2017-04-061-6/+29
| | | | | | - intended to be a swarm alternative to termbin.com - added --stdin flag to swarm executable. if set, swarm will read data from stdin and postRaw it.
* cmd/swarm, swarm/api/client: add HTTP API client and 'swarm ls' command (#3742)Lewis Marshall2017-04-051-157/+6
| | | | | | | | This adds a swarm ls command which lists files and directories stored in a manifest. Rather than listing all files, it uses "directory prefixes" in case there are a lot of files in a manifest but you just want to traverse it. This also includes some refactoring to the tests and the introduction of a swarm/api/client package to make things easier to test.
* Logger updates 3 (#3730)Péter Szilágyi2017-03-021-11/+12
| | | | | | | | * accounts, cmd, eth, ethdb: port logs over to new system * ethdb: drop concept of cache distribution between dbs * eth: fix some log nitpicks to make them nicer
* all: blidly swap out glog to our log15, logs need reworkPéter Szilágyi2017-02-231-2/+2
|
* cmd/swarm: manifest manipulation commands (#3645)Zahoor Mohamed2017-02-131-0/+26
|
* cmd/swarm: uploader uses HTTP PUT for directories (#3488)Viktor Trón2017-01-091-26/+56
|
* cmd/swarm: improve uploader output and add defaultpath optionzelig2016-12-131-22/+63
|
* cmd/swarm: trim trailing slash from bzzapi urlzelig2016-12-131-1/+1
|
* cmd/swarm: subsume cmd/bzz* as subcommands under swarmzelig2016-12-131-0/+160
cmd/swarm: subsume cmd/bzz* under cmd/swarm as subcommands