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 AD0-E716 Exam - Topic 2 Question 60 Discussion

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)
A) Option A and B) Option B
C) Option C
D) Option D

Adobe AD0-E716 Exam - Topic 2 Question 60 Discussion

Actual exam question for Adobe's AD0-E716 exam
Question #: 60
Topic #: 2
[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:

0/2000 characters
Lenna
12 hours ago
Option A and C are the requirements.
upvoted 0 times
...
Francisca
6 days ago
I think it could also involve validating the file before processing it. There was a similar question about data validation in one of our practice tests.
upvoted 0 times
...
Kanisha
11 days ago
I recall that there are specific settings in the admin panel that need to be enabled for file uploads. Maybe that's one of the requirements?
upvoted 0 times
...
Melina
16 days ago
I'm not entirely sure, but I feel like there was a practice question about file formats that mentioned the CSV structure being important for the import process.
upvoted 0 times
...
Herman
2 months ago
I think one requirement might be related to the permissions for the file upload. I remember something about user roles needing specific access.
upvoted 0 times
...

Save Cancel