nerdexam
Adobe

AD0-E716 · Question #36

An Adobe Commerce developer is tasked to add a file field to a custom form in the administration panel, the field must accept only .PDF files with size less or equal than 2 MB. So far the developer…

Sign in or unlock AD0-E716 to reveal the answer and full explanation for question #36. The question stem and answer options stay visible for context.

Customization

Question

An Adobe Commerce developer is tasked to add a file field to a custom form in the administration panel, the field must accept only .PDF files with size less or equal than 2 MB. So far the developer has added the following code within the form component xml file, inside the fieldset node:

How would the developer implement the validations? A) Add the Validations Within the HyVendor\MyModule\Controller\Adminhtml\CustomEntity\UploadPdf Controller B) Add a virtual type forMyvendor\MyModuie\Modei\customPdfupioader specifying the aiiowedExtensions and the maxFiiesize for the constructor, within the module's di.xmi:

C) Add the following code inside the<settings> node:

Exhibit

AD0-E716 question #36 exhibit

Options

  • AOption A
  • BOption B
  • COption C

Unlock AD0-E716 to see the answer

You've previewed enough free AD0-E716 questions. Unlock AD0-E716 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Topics

#file upload#virtual types#file validation#admin forms
Full AD0-E716 Practice