Skip to main content

cancel_upload

Function cancel_upload 

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

DELETE /api/v1/fs/uploads/{id} — abandon a session.

Removing the staging file (UploadStore::cancel) is blocking I/O — spawn_blocking, same convention as the other routes here.