跳至內容
選單
此問題已被標幟
1 回覆
4346 瀏覽次數

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.

頭像
捨棄
最佳答案

Hi you need extend widget FieldBinaryFile 

頭像
捨棄