Struct formdata::UploadedFile [] [src]

pub struct UploadedFile {
    pub path: PathBuf,
    pub filename: Option<String>,
    pub content_type: Mime,
    pub size: usize,
}

This structure represents uploaded files which were received as part of the multipart/form-data parsing. They are streamed to disk because they may not fit in memory.

Fields

path: PathBuf

This is the temporary file where the data was saved.

filename: Option<String>

This is the filename that was specified in the data, unfiltered. It may or may not be legal on the local filesystem.

content_type: Mime

This is the content-type that was specified in the data, unvalidated.

size: usize

This is the actual size of the file received