I am getting this error when submitting a file input to controller
TypeError: argument should be a bytes-like object or ASCII string, not 'FileStorage'
record_file = fields.Binary(string='file', attachment=True, help="Upload the snap",website_form_blacklisted=False)
this question is incomplete like not asking anything or not providing enough information about the issue