Skip to main content

accept_attribute

Function accept_attribute 

Source
pub fn accept_attribute<'a>(
    globs: impl IntoIterator<Item = &'a str>,
    mimetypes: impl IntoIterator<Item = &'a str>,
) -> String
Expand description

The accept attribute of an <input type=file> for a chooser offering globs and mimetypes. Empty (anything) when no filter was given or one cannot be expressed: a narrower chooser than the reader would hide files the app could open.