headless_lms_server::controllers::helpers::file_uploading

Function generate_image_path

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

Generates a path for an image file with the appropriate extension.