Trait form_data::FilenameGenerator
[−]
[src]
pub trait FilenameGenerator: Send + Sync { fn next_filename(&self, _: &Mime) -> Option<PathBuf>; }
A trait for types that produce filenames for uploade files
Currently, the mime type provided to the next_filename
method is guessed from the uploaded
file's original filename, so relying on this to be 100% accurate is probably a bad idea.