Closed piyush-multiplexer closed 4 years ago
file is missing from following types in input fields in original code, so it throws error
yattag.simpledoc.DocError: Unknown input type: file
def input(self, *args, **kwargs): "required attributes: 'name' and 'type'" name, type, attrs = _attrs_from_args(('name', 'type'), *args, **kwargs) self._fields.add(name) if type in ( 'text', 'password', 'hidden', 'search', 'email', 'url', 'number', 'range', 'date', 'datetime', 'datetime-local', 'month', 'week', 'time', 'color', 'file' ):
Issue finally settled thanks to https://github.com/leforestier/yattag/pull/63
file is missing from following types in input fields in original code, so it throws error