Ossido
Loading...
A file uploaded via a multipart/form-data server action.
pub struct UploadedFile { filename: String, content_type: Option<String>, bytes: Bytes, }
let file = files.get("avatar").unwrap(); println!("{} - {} bytes ({:?})", file.filename(), file.len(), file.content_type()); let bytes = file.into_bytes();