| mx_upload | R Documentation |
Upload a file to the homeserver media repository
mx_upload(session, path, content_type = NULL, filename = NULL)
session |
An "mx_session" object. |
path |
Character. Local file path. |
content_type |
Character or NULL. MIME type; guessed from the file extension if NULL. |
filename |
Character or NULL. Filename advertised to the server. |
An "mxc://" URI as a character string.
## Not run:
uri <- mx_upload(s, "photo.png")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.