Expand description
Where uploaded course media is stored, under which names, and how large it may be. Shared by the CMS upload and the agent upload so both put files in the same places under the same limits.
Enums§
- Media
Kind - What an upload is, by its MIME top-level type.
- Media
Owner - Who an upload belongs to; the first folder of its path.
Constants§
Functions§
- media_
path <owner>/<id>/<images|audios|files>/<file_name>.- size_
limit_ bytes - The largest upload allowed for a MIME top-level type such as
image. - stored_
file_ name - A fresh random name to store an upload under, keeping the letters and digits of the original name’s extension.