Skip to content

Models

domain.upload.models

Summary

Define the UploadResult model returned after storing an uploaded file.

Classes

UploadResult

Bases: BaseModel

Metadata describing a stored file upload.

Attributes:

Name Type Description
original_filename str

Name of the file as uploaded by the client.

saved_as str

Name the file was stored under on disk.

content_type str

MIME type of the uploaded file.

url str

Public URL serving the stored file.

absolute_path str

Absolute filesystem path of the stored file.