GET api/File?hash={hash}

Get file, as it was uploaded through POST api/File Unlike Get in api/Swarm, this will return HTTPResponseMessage with content, executing this request in browser will return file as was uploaded with content type and disposition data must be uploaded with api/File in order to keep filename data. This method does a little bit of background work for you. First it queries the manifest, gets hash of content and then downloads contents as file with name specified in manifest

Request Information

URI Parameters

NameDescriptionTypeAdditional information
hash

location

string

Required

Body Parameters

None.

Response Information

Resource Description

named File with contents in Content, or if invoked in browser a filedownload will start

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.