Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
5533 Lượt xem

On the internet I saw how to make a form to upload files, but now as I do to be saved in the folders of Odoo9. If the PHP file does not work in the folders of odoo


           <div name="foto_a_subir" t-attf-class="form-group #{error and

'foto_a_subir' in error and 'has-error' or ''}">  

            <label class="col-md-3 col-sm-4 control-label"

for="foto_a_subir">Subir Foto</label>

            <div class="col-md-7 col-sm-8">

            <input type="file" class="form-control" name="foto_a_subir"

required="True" t-attf-value="#{foto_a_subir or ''}"/>

           </div>

       </div>

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hi,

The file upload facility is already available in website slide, you can take reference of it.

You can also refer this: https://stackoverflow.com/questions/31906671/upload-files-in-odoo-web-form


Thanks

Ảnh đại diện
Huỷ bỏ