normally the part for file element in input handle function looks like this:
elif t == 'file':
pass # don't skip next
i changed it to this:
elif t == 'file':
self.write_tag('input', attrs, startend)
self.skip_next = True
self.add_key(name)
now when i pass prefix_error=False, then error is printed after actual element, original version of code always gets the error rendered in front of file element