push_file_to_juicehost

Function push_file_to_juicehost 

Source
pub async fn push_file_to_juicehost(
    state: &Arc<AppState>,
    id: &str,
    filename: &str,
    mime_type: &str,
    data: &[u8],
    host: Option<&str>,
) -> Result<(), String>
Expand description

Send raw bytes to juicehost. The file lands on juicehost’s disk, not juiceback’s. Pass a host override or None to use the default URL.