Model
Content
Magento\Downloadable\Model\File\Content
What it does
This class represents the file content data structure for downloadable products in Magento 2.
Developers use it to handle file uploads for downloadable product links and samples, storing the base64-encoded file content and filename.
It's primarily used when creating or updating downloadable products through the API or programmatically.
Public Methods
- getFileData()
- getName()
- setFileData()
- setName()
- getExtensionAttributes()
- setExtensionAttributes()