Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
4349 Widoki

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.

Awatar
Odrzuć
Najlepsza odpowiedź

Hi you need extend widget FieldBinaryFile 

Awatar
Odrzuć