Skip to main content

store

Function store 

Source
pub async fn store(
    owner_type: &str,
    owner_id: &str,
    field: &str,
    file: UploadedFile,
) -> Result<Attachment, ApiResponse>
Expand description

Store an uploaded file, returning a ready ApiResponse. The adapter calls this after parsing multipart; auth is the caller’s responsibility (the resource checks Update before invoking).