In form auto-generated from a content type, it will be useful to use "accept" attribute on file input to take into account the restriction of file type
For example if filter="image" use accept="image/*"