Documentation

Repository
in package

Table of Contents

Properties

$session  : Session

Methods

__construct()  : mixed
get_config()  : array<string|int, mixed>
Get the media repository configuration.
upload()  : Content_URI
Upload a file to the content repository.

Properties

Methods

get_config()

Get the media repository configuration.

public get_config() : array<string|int, mixed>

https://matrix.org/docs/api/client-server/#!/Media/getConfig

Return values
array<string|int, mixed>

Server media repository configuration.

upload()

Upload a file to the content repository.

public upload(string $file_path, string $content_type) : Content_URI
Parameters
$file_path : string

A path to the local file.

$content_type : string

A type of the file contents.

Return values
Content_URI

A content URI of the uploaded file.


        
On this page

Search results