© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3w ago•
4 replies
beety

Problem showing uploaded images

✅ Solved4️⃣v4
Hello.
I have a model with images that can be uploaded by the user. This is the schema for the file upload:
Repeater::make('image')
    ->label("Images")
    ->columnStart(1)
    ->columnSpanFull()
    ->grid(4)
    ->relationship('product_image')
    ->schema([
        FileUpload::make('file_path')
            ->hiddenLabel()
            ->moveFiles()
            ->image()
            ->imagePreviewHeight('150')
            ->imageEditor()
            ->disk('public')
            ->directory('product-imgs/')
            ->downloadable()
            ->visibility('public')
    ])
Repeater::make('image')
    ->label("Images")
    ->columnStart(1)
    ->columnSpanFull()
    ->grid(4)
    ->relationship('product_image')
    ->schema([
        FileUpload::make('file_path')
            ->hiddenLabel()
            ->moveFiles()
            ->image()
            ->imagePreviewHeight('150')
            ->imageEditor()
            ->disk('public')
            ->directory('product-imgs/')
            ->downloadable()
            ->visibility('public')
    ])

It all worked fine for a while but suddenly the images won't load in the Edit page (enclosed screen capture).
Checking the browser's dev tools you can see there is no network problem accessing the images.
The images also show up properly in the View and Create pages.
Any ideas what could be causing this?
Thank you in advance.
images.png
Solution
I solved this by modifying my APP_URL in the .env. if I host my project in localhost:8000 then my APP_URL=localhost:8000.

Src: https://filamentphp.com/docs/5.x/forms/file-upload#configuring-the-storage-disk-and-directory
File upload - Forms - Filament
Jump to solution
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

SpatieMediaLibraryFileUpload Uploaded Images Grid
FilamentFFilament / ❓┊help
10mo ago
SpatieMediaLibraryFileUpload show uploaded images
FilamentFFilament / ❓┊help
3y ago
Handle uploaded images columns and rows
FilamentFFilament / ❓┊help
16mo ago
Why are my uploaded images not displayed?
FilamentFFilament / ❓┊help
3y ago