OpenBroadcaster Documentation
models / uploads_model.php

UploadsModel

Model

Manages media uploads to the server, checking for validity and returning relevant file info.

public  file_info ( id, key )

Get relevant info about file upload.

Parameters
id Upload ID.
key Upload key.
Returns [type, format, duration]
public  is_valid ( id, key )

Return whether an uploaded file ID and associated key is valid. Returns FALSE if no ID or key is provided, or if no associated row can be found in the uploads database.

Returns is_valid