This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
bashar.ayyash
Hi,
When I create a file instance of File object and save it, it will be stored by default in storage/app/uploads
how can I change the storage path for the file:
use System\Models\File;
$x = new File();
$x = $x->fromFile(storage_path('app/media/image.jpg'); $x->save();
Thanx for help,
mjauvin
Also keep this in mind:
https://github.com/octobercms/october/blob/develop/config/filesystems.php#L46:L50
1-4 of 4