Model
Download
Magento\Sales\Model\Download
What it does
This class handles secure file downloads for custom order and quote options in Magento 2.
Developers use it to create file download responses while ensuring files are within allowed directories and handling both filesystem and database storage scenarios.
It's primarily used when customers need to download files attached to their orders, such as custom product options.
Public Methods
- downloadFile()
- createResponse()