Skip to main content

remove_upload

Function remove_upload 

Source
pub async fn remove_upload(
    context: &mut ComponentContext,
    config: &LivewireConfig,
    call: &Call,
) -> Result<Option<Value>, LivewireError>
Expand description

Handles _removeUpload, which deletes a temporary file and tells the browser.

ยงErrors

Fails when the call carries no field name or file name.