Skip to main content

complete_upload

Function complete_upload 

Source
pub async fn complete_upload(
    __arg0: State<AppState>,
    __arg1: Path<String>,
    identity: Option<Extension<Identity>>,
) -> Response
Expand description

POST /api/v1/fs/uploads/{id}/complete — verify and publish.

Verifying the checksum, resolving the destination, creating its parent directory, and the rename itself are all blocking I/O — spawn_blocking, same convention as the other routes here.