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

Hello,

I've one page which accept one input as file, like uploading file.

I'm not sure additional security has been added with latest HTML5 or javascript v11, but the same logic has been worked fine with v10.

When I try to read the value of field which is input type file. It's gives me wrong with something like,

C:/Fakepath/<myuploadedfile>

Which is wrong because of that I'm not able to read the file content and cannot store inside the database

I've done some research and found out that if I do store the controller name which uploads the files inside trusted list then it will not give you wrong path.

So, Is that right method? or something else need to be done to avoid this problem?

Thanks in advance.

Best Regards,

Anil Kesariya

아바타
취소
작성자 베스트 답변

Useful Answers and accepted.

https://www.odoo.com/forum/help-1/question/add-attachement-from-website-118903

아바타
취소
관련 게시물 답글 화면 활동
2
10월 24
3848
2
6월 24
4685
1
1월 21
3382
5
7월 23
18248
0
6월 23
2923