headless_lms_server::controllers::helpers::file_uploading

Function generate_file_path

Source
fn generate_file_path(
    field: &Field,
    store_kind: StoreKind,
) -> Result<PathBuf, ControllerError>
Expand description

Generates a path for a generic file with the appropriate extension based on its filename.