Files

Uploads a file to a room using a JSON encoded body.

This is less efficient when a binary upload is possible because the body must be passed as base64-encoded data (which is 33% larger). The user must have upload and posting permissions for the room. [NOT YET IMPLEMENTED: The file will have a default lifetime of 1 hour, but that is extended to 15 days when the containing message referencing the upload is submitted.]

post/room/{roomToken}/fileJSON

Path parameters

roomTokenstring required
Example:session-general

Token of the room to which the request is being made.

Request body

filenamestring required

Suggested filename of the upload. Typically the basename of the file uploaded from the user.

contentstring byte required

The file content, in base64 encoding.

Response

— unresolved $ref

Changes