hey.
I'm writing a my own module in odoo 11.
I want to get a file from user and save the file as a file (and not in my DB as binary or base64 cause the order of the file size is around 1 GigaBytes). so in my controller I call create method of my model (witch has a field like below):
image_file = fields.Binary(string="Your picture file", attachment=True)
but when calling it, I get a weird error which says:
TypeError: argument should be a bytes-like object or ASCII string, not 'FileStorage' - - -
it would be appreciated if you could tell me how can I save this file.
thanks.