콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
4356 화면

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 

아바타
취소