Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.3.x will end 7 October 2024 (12 months).
  • Bug fixes for security issues in 4.3.x will end 21 April 2025 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.2.x is supported too.

Matrix API feature to upload content. https://spec.matrix.org/v1.1/client-server-api/#post_matrixmediav3upload

Copyright: 2023 Andrew Lyons <andrew@nicols.co.uk>
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 83 lines (3 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 function


Functions that are not part of a class:

upload_content(?\stored_file $content,?string $mediaid = null,)   X-Ref
Upload the content in the matrix/synapse server.

param: null|\stored_file $content The content to be uploaded
param: null|string $mediaid The mediaid to associate a file with. Supported for v1.7 API an above only.
return: Response