Log in
Model

Uploader

Magento\MediaStorage\Model\File\Uploader

What it does

This class handles file uploads in Magento 2, extending the core file uploader with media storage capabilities.

Developers use it to upload files to various storage backends (local filesystem, database, or external storage), with built-in validation for file extensions, protected file types, and image processing.

It's commonly used in admin panels for importing data, uploading images, or handling any file upload operations that need to integrate with Magento's media storage system.

Public Methods

  • skipDbProcessing()
  • checkAllowedExtension()
  • getFileSize()
  • validateFile()
  • renameFile()