Helper
File
Magento\Downloadable\Helper\File
What it does
This helper class manages file operations for downloadable products in Magento 2, including uploading files from temporary directories, moving files between locations, and determining file types/MIME types.
Developers use this when working with downloadable product files (samples, links) to handle file storage, validation, and metadata retrieval.
Public Methods
- uploadFromTmp()
- moveFileFromTmp()
- ensureFileInFilesystem()
- getFilePath()
- getFileFromPathFile()
- getFileSize()
- getFileType()
- getAllFileTypes()
- getAllMineTypes()