[IMP] web: add inputName prop to FileUploader

Currently since the input has no name we can't
retrieve the file when using FormData instance.

This commit allows the developer to pass an input
name when instanciating a FileUploader component.

Task-2855647

X-original-commit: 33bc32c52bef4787ae2e529f05837c2f7dbddc7f
Part-of: odoo/odoo#102314
This commit is contained in:
Patrick Hoste
2022-10-06 08:40:46 +02:00
parent 36681866da
commit 5cc8961696
@@ -9,6 +9,7 @@
<t t-slot="default"/>
<input
type="file"
t-att-name="props.inputName"
t-ref="fileInput"
t-attf-class="o_input_file o_hidden {{ props.fileUploadClass or '' }}"
t-att-multiple="props.multiUpload ? 'multiple' : false" t-att-accept="props.acceptedFileExtensions or '*'"