Skip to content

helpers

Helpers functions.

get_filename

get_filename(image: UploadFile) -> str

Determine a filename for the uploaded image.

If the uploaded file has an original filename, use it. Otherwise, generate a unique filename based on the content type.