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
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
mjauvin
bashar.ayyash

1-4 of 4

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.