Model
FileUploader
Magento\Customer\Model\FileUploader
What it does
This class handles file uploads for customer and customer address attributes in Magento 2.
Developers use it to validate and process file uploads for custom file-type attributes, ensuring files meet validation rules like allowed extensions before saving them to temporary storage.
It's primarily used when implementing custom customer forms with file upload fields.
Public Methods
- validate()
- upload()
- uploadFile()