Model
FileProcessor
Magento\Customer\Model\FileProcessor
What it does
This class handles file upload operations for customer and customer address attributes in Magento 2.
Developers use it to save uploaded files to temporary storage, move them to permanent locations, retrieve file metadata (MIME type, statistics), generate view URLs, and manage file deletion.
It's primarily used when implementing custom file upload fields for customer or address attributes.
Public Methods
- getBase64EncodedData()
- getStat()
- getMimeType()
- isExist()
- getViewUrl()
- saveTemporaryFile()
- moveTemporaryFile()
- removeUploadedFile()