push_file_path_to_juicehost

Function push_file_path_to_juicehost 

Source
pub async fn push_file_path_to_juicehost(
    state: &Arc<AppState>,
    id: &str,
    file_path: &Path,
    filename: &str,
    mime_type: &str,
    host: Option<&str>,
) -> Result<(), String>
Expand description

Push a file from a local path to juicehost. Used as a staging step for TUS uploads that need temporary local storage. The file is deleted from juiceback’s disk after the push.