Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use cms.storage.uploads.disk instead of filesystem.default
Fixes #3332. FileUpload widget uploads file to the disk specified by default in config/filesystem.php instead of storage.uploads.disk in config/cms.php, if we use System\Models\File following the instruction in here. Although we can still create another class extending System\Models\File or October\Rain\Database\Attach\File and use it as the model for attachOne/Many relation, System\Models\File seems to be the one that responsible to look at storage.uploads.disk in config/cms.php, because the existing methods are using storage.uploads.*. Credit to @pikanji
- Loading branch information