Changing the disk when you upload attachment in RichEditor

    public static function form(Form $form): Form
    {
        return $form
            ->schema([
                Card::make([
                    Forms\Components\TextInput::make('title')
                        ->required()
                        ->columnSpan(2)
                        ->maxLength(255),
                    Forms\Components\RichEditor::make('content')
                        ->columnSpan(2)
                        ->required(),
                ]),
                Card::make([
                    Forms\Components\Select::make('author_id')
                        ->options([Auth()->id() => Auth()->user()->name])
                        ->default(Auth()->id())
                        ->disabled(),
                    Forms\Components\DatePicker::make('released_at'),
                ])->columns(2)
            ]);
    }


Is it possible to somehow tell filament where to store an attachment when you upload something in the RichEditor?
Was this page helpful?