diff --git a/projects/ui/src/lib/components/po-dynamic/po-dynamic-form/po-dynamic-form-field.interface.ts b/projects/ui/src/lib/components/po-dynamic/po-dynamic-form/po-dynamic-form-field.interface.ts index d22c59bb2..f0702d3ce 100644 --- a/projects/ui/src/lib/components/po-dynamic/po-dynamic-form/po-dynamic-form-field.interface.ts +++ b/projects/ui/src/lib/components/po-dynamic/po-dynamic-form/po-dynamic-form-field.interface.ts @@ -590,6 +590,15 @@ export interface PoDynamicFormField extends PoDynamicField { */ restrictions?: PoUploadFileRestrictions; + /** + * Nome do campo de formulário que será enviado para o serviço informado na propriedade `url`. + * + * > O valor default é `files` + * + * **Componente compatível**: `po-upload` + */ + formField?: string; + /** * Objeto que contém os cabeçalhos que será enviado na requisição dos arquivos. * diff --git a/projects/ui/src/lib/components/po-dynamic/po-dynamic-form/po-dynamic-form-fields/po-dynamic-form-fields.component.html b/projects/ui/src/lib/components/po-dynamic/po-dynamic-form/po-dynamic-form-fields/po-dynamic-form-fields.component.html index 8538dbe90..39c3bc808 100644 --- a/projects/ui/src/lib/components/po-dynamic/po-dynamic-form/po-dynamic-form-fields/po-dynamic-form-fields.component.html +++ b/projects/ui/src/lib/components/po-dynamic/po-dynamic-form/po-dynamic-form-fields/po-dynamic-form-fields.component.html @@ -380,6 +380,7 @@ [p-drag-drop]="field.dragDrop" [p-drag-drop-height]="field.dragDropHeight" [p-restrictions]="field.restrictions" + [p-form-field]="field.formField" [p-headers]="field.headers" [p-help]="field.help" [p-hide-restrictions-info]="field.hideRestrictionsInfo"