Module headless_lms_server::controllers::helpers::file_uploading
source · Expand description
Helper functions related to uploading to file storage.
Re-exports
pub use crate::domain::authorization::AuthorizationToken;
Structs
Enums
- FileType 🔒
Functions
- Generates a path for an audio file with the appropriate extension.
- Generates a path for a generic file with the appropriate extension based on its filename.
- Generates a path for an image file with the appropriate extension.
- path 🔒
- Processes an upload from an exercise service or an exercise iframe. This function assumes that any permission checks have already been made.
- Processes an upload from CMS.
- Uploads the data from the multipart
field
to the givenpath
in file storage. - Processes an upload from CMS.
- Processes an upload for an organization’s image.
- Generates a path for an audio file with the appropriate extension.