Skip to Content
Menu
This question has been flagged
1 Reply
3833 Views

Hi,

I need to add a progress bar into my custom module that will show up while a file is being uploaded.

---The concerned field in my model is:

attachment = fields.Binary('File')

file_name = fields.Char('File Name')

---In my form view i'm using:

<field name="attachment " filename="file_name"/>
 <field name="file_name" invisible="1"/>

when i try to upload a big file the form keeps freezing until the file upload ends that's why i need to add progress bar.

Thank you in advance.

Avatar
Discard
Best Answer

Hi you need extend widget FieldBinaryFile 

Avatar
Discard