Log in
Model

ContentUploader

Magento\Downloadable\Model\File\ContentUploader

What it does

This class handles uploading downloadable product files (links and samples) through the API by decoding base64-encoded content and saving it to temporary directories.

Developers use this when creating or updating downloadable products programmatically, as it processes file content sent via web services instead of traditional form uploads.

Public Methods

  • upload()