Repository
in package
Table of Contents
Properties
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
$session
protected
Session
$session
Methods
__construct()
public
__construct(Session $session) : mixed
Parameters
- $session : Session
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.