macro_rules! file_upload {
($filepath:expr, $attached_filename:expr) => { ... };
}Expand description
File response.
Usage:
use impulse_utils::prelude::*;
use salvo::prelude::*;
use std::path::PathBuf;
pub async fn some_endpoint() -> MResult<File> {
file_upload!(PathBuf::from("filepath.txt"), "Normal file name.txt".to_string())
}