© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•14mo ago•
42 replies
cmdrpigeon

Uploading File Gives [Method Not Allowed] error when uploaded via filepond

I am getting the following error when try to upload files via Filament.

The GET method is not supported when for route Livewire/upload-file.
The GET method is not supported when for route Livewire/upload-file.


I am working on it locally at the moment. I am using Laravel 11.x with Laragon. Serving from public folder. I am not using
php artisan serve to serve
php artisan serve to serve
app.


File upload code:
                        # images
                        Forms\Components\FileUpload::make('images')
                                ->label('Upload images of the recipe')
                                ->helperText('Drag & drop multiple images at once')
                                // ->disk('public')
                                // ->visibility('public')
                                ->reactive()
                                ->acceptedFileTypes(['image/*'])
                                ->multiple()
                                ->maxSize(10240) # 10MB file limit
                                ->maxFiles(5)
                                ->minFiles(1)
                                ->directory('recipe-images')
                                ->saveRelationshipsUsing(function ($component, $state, $record) {
                                    foreach ($state as $filePath) {
                                        $record->images()->create([
                                            'path' => $filePath
                                        ]);
                                    }
                                })->columnSpanFull()
                                ->required()
                        # images
                        Forms\Components\FileUpload::make('images')
                                ->label('Upload images of the recipe')
                                ->helperText('Drag & drop multiple images at once')
                                // ->disk('public')
                                // ->visibility('public')
                                ->reactive()
                                ->acceptedFileTypes(['image/*'])
                                ->multiple()
                                ->maxSize(10240) # 10MB file limit
                                ->maxFiles(5)
                                ->minFiles(1)
                                ->directory('recipe-images')
                                ->saveRelationshipsUsing(function ($component, $state, $record) {
                                    foreach ($state as $filePath) {
                                        $record->images()->create([
                                            'path' => $filePath
                                        ]);
                                    }
                                })->columnSpanFull()
                                ->required()
400127273-d92fded9-d64c-4a36-afbd-c5a7373ff5ce.png
400127137-51e67dd4-7fc4-4a91-b5bc-13e9f11e55a8.png
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

Form with Table error Method Not Allowed
FilamentFFilament / ❓┊help
2y ago
401 Unauthorized When Uploading File
FilamentFFilament / ❓┊help
3y ago
File Uploading problem 401 Error.
FilamentFFilament / ❓┊help
9mo ago
Error while uploading the file
FilamentFFilament / ❓┊help
3y ago