Skip to content
Rigel docs
Open Rigel

Files

Upload photos, videos and documents, read them back, and remove them.

Commands

Queries

  • GetA file's detailsfiles.file.getThe file's name, kind, and the type and size of each copy, or null when there is no such file.

Routes

  • PostUpload a new filefiles.uploadCreates a file from its first copy, sent as the raw request body with its Content-Type and an exact Content-Length.
  • PutUpload a file's missing copyfiles.add_copyAdds the original or the display copy a file doesn't have yet, sent as the raw request body.
  • GetDownload a file's bytesfiles.contentStreams the display copy, or the original when there is none. copy picks one, and download=1 asks the browser to save it.