File
Magento\Customer\Model\Metadata\Form\File
What it does
This class handles file upload, validation, and storage operations for customer attributes in Magento 2.
Developers use it when working with customer file-type attributes (like profile images or documents) to extract uploaded files from requests, validate them against configured rules (size, extensions), and save them to the appropriate media directory.
It supports both traditional file inputs and UI component file uploaders.
Public Methods
- extractValue()
- validateValue()
- compactValue()
- restoreValue()
- outputValue()