Model
File
Magento\Customer\Model\Metadata\Form\File
What it does
This class handles file upload operations for customer attributes in Magento 2.
Developers use it to validate, extract, process, and save file uploads from forms (like customer profile images or documents), ensuring files meet validation rules like allowed extensions and maximum file size.
It integrates with both traditional file inputs and Magento's UI component file uploader.
Public Methods
- extractValue()
- validateValue()
- compactValue()
- restoreValue()
- outputValue()