Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Adobe Exam AD0-E716 Topic 1 Question 50 Discussion

Actual exam question for Adobe's AD0-E716 exam
Question #: 50
Topic #: 1
[All AD0-E716 Questions]

A logistics company with an Adobe Commerce extension sends a list of reviewed shipment fees to all its clients every month in a CSV file. The merchant then uploads this CSV file to a "file upload" field in admin configuration of Adobe Commerce.

What are the two requirements to display the "file upload" field and process the actual CSV import? (Choose two.)

A)

B)

C)

D)

Show Suggested Answer Hide Answer
Suggested Answer: A, B

To display the 'file upload' field and process the actual CSV import, the following two requirements must be met:

The developer must create a new system configuration setting that specifies the path to the CSV file.

The developer must create a new controller action that handles the file upload and import process.

The system.xml file is used to define system configuration settings. The following XML snippet shows how to define a new system configuration setting for the CSV file path:

XML

<config>

<system>

<config>

<shipment_fees_csv_path>/path/to/csv/file</shipment_fees_csv_path>

</config>

</system>

</config>

The ControllerAdminhtmlShipmentFees controller class is used to handle the file upload and import process. The following code shows how to create a new controller action that handles the file upload and import process:

PHP

public function uploadAction()

{

$file = $this->getRequest()->getFile('shipment_fees_csv_file');

if ($file->isUploaded()) {

$importer = new ShipmentFeesImporter();

$importer->import($file);

}

return $this->redirect('adminhtml/system_config/edit/section/shipment_fees');

}


Contribute your Thoughts:

Elfriede
2 days ago
I think we had a practice question about file handling in Adobe Commerce, and it mentioned something about configuration settings. Maybe that's relevant here?
upvoted 0 times
...
Rashida
8 days ago
I remember we discussed the importance of permissions for file uploads, but I'm not sure which option covers that.
upvoted 0 times
...
Katina
13 days ago
Alright, time to put my Adobe Commerce knowledge to the test. I've worked with similar file upload and import processes before, so I'm feeling confident about this one.
upvoted 0 times
...
Kirk
18 days ago
This seems straightforward enough. I think the key is to identify the two requirements that enable the "file upload" field and the actual CSV import. I'll carefully consider each option and make my selection.
upvoted 0 times
...
Ettie
23 days ago
I'm a bit confused by the wording of the question. It's not entirely clear to me what the "file upload" field and CSV import process entail. I'll need to read through the options more carefully.
upvoted 0 times
...
Kathrine
28 days ago
Okay, let's see here. The question is asking about the two requirements, so I'll need to analyze each option and determine which ones are correct.
upvoted 0 times
...
Lorean
1 month ago
Hmm, this looks like a tricky one. I'll need to carefully review the options and think through the requirements for the "file upload" field and CSV import process.
upvoted 0 times
...
Thersa
2 months ago
I'm going with Option B and Option C. That file upload field is crucial, and the CSV file format must be handled properly too.
upvoted 0 times
...
Bea
2 months ago
Option A and Option D look like the correct choices to me. The file upload field and the actual CSV import process seem to be the two key requirements here.
upvoted 0 times
...

Save Cancel