© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
14 replies
Matthew

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)
            ]);
    }
    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?
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Upload attachment
FilamentFFilament / ❓┊help
3y ago
PDF Upload in RichEditor
FilamentFFilament / ❓┊help
4mo ago
RichEditor upload an image
FilamentFFilament / ❓┊help
3mo ago
Can i validate upload image when using richEditor ?
FilamentFFilament / ❓┊help
3y ago