A partial archive of discourse.wicg.io as of Saturday February 24, 2024.

Input type ‘file’ too abstract/generalized?

richarddunnebsc
2017-08-25

Can a case be made that the input type ‘file’ is too abstract/generalized? Would anyone support using file types instead, such as doc (document), image/logo (possibly for branding purposes), photo, music, video?

DanielHerr
2017-08-25

You can already specify the file types. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#Getting_information_on_selected_files