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 information (MIME type, content, URLs), and manage file deletion.
It's particularly useful when working with custom file-type customer attributes or when building features that require customer file uploads.
Public Methods
- getBase64EncodedData()
- getStat()
- getMimeType()
- isExist()
- getViewUrl()
- saveTemporaryFile()
- moveTemporaryFile()
- removeUploadedFile()