Conduitfile.uploadhash

API Method: file.uploadhash

Login Required: This method requires authentication. You must log in before you can make calls to it.
Returns
phid or null
Errors
  • ERR-CONDUIT-CORE: See error message for details.
Description

Upload a file to the server using content hash.

Call Method

Enter parameters using JSON. For instance, to enter a list, type: ["apple", "banana", "cherry"]

required nonempty string
required nonempty string

Examples

Use the Conduit API Tokens panel in Settings to generate or manage API tokens.
$ echo <json-parameters> | arc call-conduit --conduit-uri https://phabricator.cooltrainer.org/ --conduit-token <conduit-token> file.uploadhash