store_file_streaming

Function store_file_streaming 

Source
pub async fn store_file_streaming(
    __arg0: State<Arc<AppState>>,
    __arg1: Path<(String, String)>,
    _headers: HeaderMap,
    body: Body,
) -> Result<Json<Value>, (StatusCode, Json<Value>)>
Expand description

Accepts a raw body stream and writes chunks to disk as they arrive. File ID and name come from the URL path, mime type from a header.